|
|
|
@ -5,13 +5,14 @@ from fastapi.testclient import TestClient |
|
|
|
|
|
|
|
from ...utils import needs_py310, needs_pydanticv2 |
|
|
|
|
|
|
|
skip_for_pydantic_v1 = needs_pydanticv2 |
|
|
|
|
|
|
|
# Remove when deprecating Pydantic v1 |
|
|
|
pytestmark = pytest.mark.filterwarnings( |
|
|
|
"ignore:The `copy` method is deprecated; use `model_copy` instead.:DeprecationWarning", |
|
|
|
"ignore:The `dict` method is deprecated; use `model_dump` instead.:DeprecationWarning", |
|
|
|
) |
|
|
|
pytestmark = [ |
|
|
|
pytest.mark.filterwarnings( |
|
|
|
"ignore:The `copy` method is deprecated; use `model_copy` instead.:DeprecationWarning", |
|
|
|
"ignore:The `dict` method is deprecated; use `model_dump` instead.:DeprecationWarning", |
|
|
|
), |
|
|
|
needs_pydanticv2, |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture( |
|
|
|
|