include an inherent bug in the test

This commit is contained in:
jujumilk3 2023-11-04 12:38:02 +09:00
parent 279e17689b
commit 5bf577e563
1 changed files with 9 additions and 0 deletions

View File

@ -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={