mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
fix 2fa tests
This commit is contained in:
parent
cffbf82ddb
commit
f55adbadf4
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ class LoginViews(TestCase):
|
|||
|
||||
with patch("bookwyrm.views.landing.login.login"):
|
||||
result = view(request)
|
||||
self.assertEqual(result.url, "/login-2FA-prompt")
|
||||
self.assertEqual(result.url, "/2fa-prompt")
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
||||
def test_login_post_with_2fa(self, *_):
|
||||
|
@ -154,5 +154,5 @@ class LoginViews(TestCase):
|
|||
|
||||
with patch("bookwyrm.views.landing.login.login"):
|
||||
result = view(request)
|
||||
self.assertEqual(result.url, "/login-2FA-check")
|
||||
self.assertEqual(result.url, "/2fa-check")
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
|
Loading…
Reference in a new issue