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.
1 parent df0d2da commit a3396deCopy full SHA for a3396de
conftest.py
@@ -7,11 +7,6 @@
7
from .dependencies import get_db, database_url
8
from .models import Base
9
10
-@pytest.fixture(autouse=True)
11
-def clean_books_table(test_db):
12
- """Truncate books table before each test to avoid unique constraint errors."""
13
- test_db.execute("TRUNCATE TABLE books RESTART IDENTITY CASCADE;")
14
- test_db.commit()
15
16
@pytest.fixture(scope="session")
17
def test_engine():
0 commit comments