Skip to content

Commit a3396de

Browse files
committed
Update conftest.py
Signed-off-by: Vikram Vaswani <112123850+vikram-dagger@users.noreply.github.com>
1 parent df0d2da commit a3396de

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

conftest.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
from .dependencies import get_db, database_url
88
from .models import Base
99

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()
1510

1611
@pytest.fixture(scope="session")
1712
def test_engine():

0 commit comments

Comments
 (0)