mirror of https://github.com/tiangolo/fastapi.git
include an inherent bug in the test
This commit is contained in:
parent
279e17689b
commit
5bf577e563
|
|
@ -378,6 +378,9 @@ def test_response():
|
||||||
"tax": 9.0,
|
"tax": 9.0,
|
||||||
"extra_optional_attributes": "alias_query",
|
"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(
|
response = client.get(
|
||||||
"/item",
|
"/item",
|
||||||
params={
|
params={
|
||||||
|
|
@ -405,6 +408,9 @@ def test_response():
|
||||||
"tax": 9.0,
|
"tax": 9.0,
|
||||||
"extra_optional_attributes": "alias_query",
|
"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(
|
response = client.get(
|
||||||
"/item",
|
"/item",
|
||||||
params={
|
params={
|
||||||
|
|
@ -432,6 +438,9 @@ def test_response():
|
||||||
"tax": 9.0,
|
"tax": 9.0,
|
||||||
"extra_optional_attributes": "alias_query",
|
"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(
|
response = client.get(
|
||||||
"/item",
|
"/item",
|
||||||
params={
|
params={
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue