From 5bf577e563df35129aba5a5e9cec289a11fba669 Mon Sep 17 00:00:00 2001 From: jujumilk3 Date: Sat, 4 Nov 2023 12:38:02 +0900 Subject: [PATCH] include an inherent bug in the test --- tests/test_dependency_schema_query.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_dependency_schema_query.py b/tests/test_dependency_schema_query.py index 79f172eac..b7307519a 100644 --- a/tests/test_dependency_schema_query.py +++ b/tests/test_dependency_schema_query.py @@ -378,6 +378,9 @@ def test_response(): "tax": 9.0, "extra_optional_attributes": "alias_query", } + if not PYDANTIC_V2: + expected_response.pop("extra_optional_attributes") + expected_response["extra_optional_attributes_alias"] = None response = client.get( "/item", params={ @@ -405,6 +408,9 @@ def test_response(): "tax": 9.0, "extra_optional_attributes": "alias_query", } + if not PYDANTIC_V2: + expected_response.pop("extra_optional_attributes") + expected_response["extra_optional_attributes_alias"] = None response = client.get( "/item", params={ @@ -432,6 +438,9 @@ def test_response(): "tax": 9.0, "extra_optional_attributes": "alias_query", } + if not PYDANTIC_V2: + expected_response.pop("extra_optional_attributes") + expected_response["extra_optional_attributes_alias"] = None response = client.get( "/item", params={