Skip to content

Commit c7ad8e1

Browse files
committed
fix: remove unused tests
1 parent 1a58f6c commit c7ad8e1

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

tests/sqlalchemy_factory/test_sqlalchemy_factory_common.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,12 +464,6 @@ class Place(Base):
464464
SQLAlchemyFactory.create_factory(Place)
465465

466466

467-
def test_check_deprecated_setting() -> None:
468-
with pytest.warns(DeprecationWarning, match=r"Use of deprecated default '__set_relationships__'"):
469-
470-
class BookFactory(SQLAlchemyFactory[Book]): ...
471-
472-
473467
def test_check_deprecated_default_overridden_no_deprecation() -> None:
474468
with warnings.catch_warnings():
475469
warnings.simplefilter("error")

tests/test_factory_fields.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,6 @@ class NoFieldModel(BaseModel):
207207
ModelFactory.create_factory(NoFieldModel, bases=None, unknown_field=factory_field)
208208

209209

210-
def test_check_model_deprecation() -> None:
211-
with pytest.warns(DeprecationWarning, match=r"Use of deprecated default '__check_model__'"):
212-
213-
class MyModel(BaseModel):
214-
name: str
215-
216-
class MyFactory(ModelFactory[MyModel]): ...
217-
218-
219210
def test_check_model_overridden_no_deprecation() -> None:
220211
with warnings.catch_warnings():
221212
warnings.simplefilter("error")

0 commit comments

Comments
 (0)