Fix test test_create_first_user()

This commit is contained in:
2026-05-23 20:08:10 +02:00
parent 713d41e81c
commit e6a248529b
3 changed files with 15 additions and 16 deletions

View File

@@ -15,7 +15,7 @@ scanner = BackgroundScanner(db=get_db_session())
async def lifespan(app: FastAPI):
load_dotenv()
create_db_and_tables()
create_first_user()
create_first_user(db=get_db_session())
print("Database created and tables initialized.")
scanner.start()
yield