Skip to content

Commit 494bdf1

Browse files
committed
✅ Set clear_sqlmodel to autouse=True
1 parent d42c85f commit 494bdf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
docs_src_path = top_level_path / "docs_src"
1515

1616

17-
@pytest.fixture()
18-
def clear_sqlmodel():
17+
@pytest.fixture(autouse=True)
18+
def clear_sqlmodel() -> Any:
1919
# Clear the tables in the metadata for the default base model
2020
SQLModel.metadata.clear()
2121
# Clear the Models associated with the registry, to avoid warnings

0 commit comments

Comments
 (0)