From 9bd37991b20b5fd683e5157a98cd8588ff372784 Mon Sep 17 00:00:00 2001 From: allyoucanmap Date: Wed, 9 Oct 2024 10:58:45 +0200 Subject: [PATCH] fix backend tests --- backend/app/tests/conftest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/app/tests/conftest.py b/backend/app/tests/conftest.py index 90ab39a..0dc6fb0 100644 --- a/backend/app/tests/conftest.py +++ b/backend/app/tests/conftest.py @@ -7,7 +7,7 @@ from app.core.config import settings from app.core.db import engine, init_db from app.main import app -from app.models import Item, User +from app.models import User from app.tests.utils.user import authentication_token_from_email from app.tests.utils.utils import get_superuser_token_headers @@ -17,8 +17,6 @@ def db() -> Generator[Session, None, None]: with Session(engine) as session: init_db(session) yield session - statement = delete(Item) - session.execute(statement) statement = delete(User) session.execute(statement) session.commit()