Explain problem; will fix later maybe
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user