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.
VaidationError
1 parent 5de3c0b commit 926bd78Copy full SHA for 926bd78
tests/test_pydantic/test_field.py
@@ -67,5 +67,7 @@ class DateModel(SQLModel):
67
# Validates correctly
68
69
with pytest.raises(ValidationError):
70
- DateModel(date_1="2024-12-31", date_2="2024-12-31")
71
- # This should raise a ValueError due to regex mismatch
+ DateModel(date_1="incorrect", date_2="12-31-2024") # date_1 pattern mismatch
+
72
+ with pytest.raises(ValidationError):
73
+ DateModel(date_1="12-31-2024", date_2="incorrect") # date_2 pattern mismatch
0 commit comments