We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d2a45 commit 6667109Copy full SHA for 6667109
tests/test_aliases.py
@@ -148,10 +148,7 @@ class SQLModelUserV2(SQLModel):
148
SQLModelUserV2 = None
149
150
151
-@pytest.mark.skipif(
152
- not VERSION.startswith("2."),
153
- reason="validation_alias and serialization_alias are not supported in Pydantic v1",
154
-)
+@needs_pydanticv2
155
@pytest.mark.parametrize("model", [PydanticUserV2, SQLModelUserV2])
156
def test_create_with_validation_alias(
157
model: Union[Type[PydanticUserV2], Type[SQLModelUserV2]],
0 commit comments