tests: ensure helper function actually updates database schema

This commit is contained in:
bronsen 2026-02-22 18:58:05 +01:00
parent aba919adca
commit aecd10115e
3 changed files with 18 additions and 4 deletions

View file

@ -6,5 +6,5 @@ sqlite_url = os.environ.get("DATABASE_URL", "sqlite:///database.db")
engine = create_engine(sqlite_url, echo=False)
def create_db_and_tables():
def create_db_and_tables(engine):
SQLModel.metadata.create_all(engine)