diff --git a/game/tests/test_level_editor.py b/game/tests/test_level_editor.py index 697998926..0e7493484 100644 --- a/game/tests/test_level_editor.py +++ b/game/tests/test_level_editor.py @@ -71,9 +71,10 @@ def login(self, email, password): self.client.post( reverse("teacher_login"), { - "username": email, - "password": password, + "auth-username": email, + "auth-password": password, "g-recaptcha-response": "something", + "teacher_login_view-current_step": "auth", }, follow=True, ) diff --git a/game/tests/test_level_moderation.py b/game/tests/test_level_moderation.py index 43194aae3..a01e0b4b5 100644 --- a/game/tests/test_level_moderation.py +++ b/game/tests/test_level_moderation.py @@ -95,9 +95,10 @@ def login(self, email, password): self.client.post( reverse("teacher_login"), { - "username": email, - "password": password, + "auth-username": email, + "auth-password": password, "g-recaptcha-response": "something", + "teacher_login_view-current_step": "auth", }, follow=True, )