updated User creation method in functional_tests.management.commands.create_session
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Disco DeDisco
2026-02-19 20:50:31 -05:00
parent 025a59938b
commit 5106b04175

View File

@@ -20,7 +20,7 @@ class Command(BaseCommand):
self.stdout.write(session_key) self.stdout.write(session_key)
def create_pre_authenticated_session(email): def create_pre_authenticated_session(email):
user = User.objects.create(email=email) user = User.objects.create_user(email=email)
session = SessionStore() session = SessionStore()
session[SESSION_KEY] = str(user.pk) # Convert UUID to string for JSON serialization session[SESSION_KEY] = str(user.pk) # Convert UUID to string for JSON serialization
session[BACKEND_SESSION_KEY] = "apps.lyric.authentication.PasswordlessAuthenticationBackend" session[BACKEND_SESSION_KEY] = "apps.lyric.authentication.PasswordlessAuthenticationBackend"