Skip to content

Commit

Permalink
refactor: remove usage of sqlalchemy-utils (db init done by sql script)
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Aug 6, 2024
1 parent c309d57 commit 4f7de9a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 4f7de9a

Please sign in to comment.