diff --git a/tests/test_serialize_response_model.py b/tests/test_serialize_response_model.py index 210a44c8b..790a1ebd7 100644 --- a/tests/test_serialize_response_model.py +++ b/tests/test_serialize_response_model.py @@ -6,7 +6,6 @@ from fastapi._compat import PYDANTIC_V2, PYDANTIC_VERSION from pydantic import BaseModel, Field from starlette.testclient import TestClient - app = FastAPI() @@ -202,7 +201,10 @@ if PYDANTIC_V2: assert response.json() == expected_response - @pytest.mark.skipif(PYDANTIC_VERSION >= "2.7.3", reason="Pydantic supports the feature from this point on") + @pytest.mark.skipif( + PYDANTIC_VERSION >= "2.7.3", + reason="Pydantic supports the feature from this point on", + ) def test_validdict_with_context__pre_pydantic_support(): response = client.get("/items/validdict-with-context") response.raise_for_status() @@ -213,4 +215,4 @@ if PYDANTIC_V2: "k3": {"aliased_name": "baz", "owner_ids": [1, 2, 3], "secret": "sEcReT"}, } - assert response.json() == expected_response \ No newline at end of file + assert response.json() == expected_response