Skip to content

Commit

Permalink
fix: update tests with new teacher login form (#1179)
Browse files Browse the repository at this point in the history
* fix: update tests with new teacher login form
  • Loading branch information
razvan-pro authored May 11, 2021
1 parent 56c3372 commit 076c327
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions game/tests/test_level_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
5 changes: 3 additions & 2 deletions game/tests/test_level_moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 076c327

Please sign in to comment.