From bf51d6025cca47cd0a4de5a571da0cc6307cbf5b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 00:39:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_serialize_response_model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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