From 4f7de9abaeeac2705c92b6351a99edca59b8e843 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Tue, 6 Aug 2024 11:16:42 +0100 Subject: [PATCH] refactor: remove usage of sqlalchemy-utils (db init done by sql script) --- src/backend/tests/conftest.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/backend/tests/conftest.py b/src/backend/tests/conftest.py index 074153e4f9..34070ff5d6 100644 --- a/src/backend/tests/conftest.py +++ b/src/backend/tests/conftest.py @@ -33,7 +33,6 @@ from loguru import logger as log from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker -from sqlalchemy_utils import create_database, database_exists from app.auth.auth_routes import get_or_create_user from app.auth.auth_schemas import AuthUser, FMTMUser @@ -74,10 +73,6 @@ def app() -> Generator[FastAPI, Any, None]: def db_engine(): """The SQLAlchemy database engine to init.""" engine = create_engine(settings.FMTM_DB_URL.unicode_string()) - if not database_exists: - create_database(engine.url) - - Base.metadata.create_all(bind=engine) yield engine