File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class Model(SQLModel):
5656 assert "foo=" not in repr (instance )
5757
5858
59- def test_field_regex_param ():
59+ def test_regex ():
6060 with pytest .warns (DeprecationWarning , match = "The `regex` parameter is deprecated" ):
6161
6262 class DateModel (SQLModel ):
@@ -68,7 +68,7 @@ class DateModel(SQLModel):
6868 DateModel (date_1 = "incorrect" )
6969
7070
71- def test_field_pattern_param ():
71+ def test_pattern ():
7272 class DateModel (SQLModel ):
7373 date_1 : str = Field (pattern = r"^\d{2}-\d{2}-\d{4}$" )
7474
@@ -78,7 +78,7 @@ class DateModel(SQLModel):
7878 DateModel (date_1 = "incorrect" )
7979
8080
81- def test_field_pattern_via_schema_extra ():
81+ def test_pattern_via_schema_extra ():
8282 with pytest .warns (
8383 DeprecationWarning ,
8484 match = "Pass `pattern` parameter directly to Field instead of passing it via `schema_extra`" ,
You can’t perform that action at this time.
0 commit comments