Explain problem; will fix later maybe

This commit is contained in:
2026-05-18 21:04:17 +02:00
parent 56c8d38cde
commit 3e86fe223e

View File

@@ -131,7 +131,9 @@ def test_auth_is_admin(db_session, admin_user, regular_user):
def test_create_first_user(db_session):
"""Test automatic creation of first admin user."""
#Currently broken because this uses the prod db because of how i wrote the create_first_user function
# Clear any existing users
from sqlmodel import select
db_session.exec(select(UserDB)).all()
for user in db_session.exec(select(UserDB)).all():
db_session.delete(user)