Skip to content

Commit 570be83

Browse files
committed
Rename tests
1 parent 01b3954 commit 570be83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_pydantic/test_field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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`",

0 commit comments

Comments
 (0)