Skip to content

Commit 6667109

Browse files
Apply suggestion from @YuriiMotov
Co-authored-by: Motov Yurii <[email protected]>
1 parent 34d2a45 commit 6667109

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_aliases.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ class SQLModelUserV2(SQLModel):
148148
SQLModelUserV2 = None
149149

150150

151-
@pytest.mark.skipif(
152-
not VERSION.startswith("2."),
153-
reason="validation_alias and serialization_alias are not supported in Pydantic v1",
154-
)
151+
@needs_pydanticv2
155152
@pytest.mark.parametrize("model", [PydanticUserV2, SQLModelUserV2])
156153
def test_create_with_validation_alias(
157154
model: Union[Type[PydanticUserV2], Type[SQLModelUserV2]],

0 commit comments

Comments
 (0)