From ff0b30f5b6be833d3082180cce3936037f60110c Mon Sep 17 00:00:00 2001 From: Nikita Zavadin Date: Mon, 21 Oct 2024 18:36:45 +0200 Subject: [PATCH] fix: run test only for pydantic v2 --- tests/test_compat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_compat.py b/tests/test_compat.py index b50ac250a..470a7050d 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -80,7 +80,8 @@ def test_complex(): assert response2.json() == [1, 2] -def test_propagates_pydantic_model_config(): +@needs_pydanticv2 +def test_propagates_pydantic2_model_config(): app = FastAPI() class Missing: