forked from jazzband/django-two-factor-auth
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moreover, ChromeDriverManager isn't needed any longer.
- Loading branch information
Showing
5 changed files
with
12 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ django-user-sessions | |
|
||
# Example app (WebAuthn) | ||
|
||
webauthn~=1.6.0 | ||
webauthn~=1.11.0 | ||
|
||
# Testing | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# test with selenium | ||
selenium~=4.4.3 | ||
webdriver-manager~=3.8.3,!=3.8.5 | ||
selenium~=4.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -684,7 +684,7 @@ def test_with_remember(self): | |
self.assertEqual(1, len([cookie for cookie in response.cookies if cookie.startswith('remember-cookie_')])) | ||
|
||
# Logout | ||
self.client.get(reverse('logout')) | ||
self.client.post(reverse('logout')) | ||
response = self.client.get('/secure/raises/') | ||
self.assertEqual(response.status_code, 403) | ||
|
||
|
@@ -733,7 +733,7 @@ def test_without_remember(self): | |
self.assertEqual(0, len([cookie for cookie in response.cookies if cookie.startswith('remember-cookie_')])) | ||
|
||
# Logout | ||
self.client.get(reverse('logout')) | ||
self.client.post(reverse('logout')) | ||
response = self.client.get('/secure/raises/') | ||
self.assertEqual(response.status_code, 403) | ||
|
||
|
@@ -758,7 +758,7 @@ def test_expired(self): | |
self.assertEqual(1, len([cookie for cookie in response.cookies if cookie.startswith('remember-cookie_')])) | ||
|
||
# Logout | ||
self.client.get(reverse('logout')) | ||
self.client.post(reverse('logout')) | ||
response = self.client.get('/secure/raises/') | ||
self.assertEqual(response.status_code, 403) | ||
|
||
|
@@ -790,7 +790,7 @@ def test_wrong_signature(self): | |
self.assertEqual(1, len([cookie for cookie in response.cookies if cookie.startswith('remember-cookie_')])) | ||
|
||
# Logout | ||
self.client.get(reverse('logout')) | ||
self.client.post(reverse('logout')) | ||
response = self.client.get('/secure/raises/') | ||
self.assertEqual(response.status_code, 403) | ||
|
||
|
@@ -822,7 +822,7 @@ def test_remember_token_throttling(self): | |
self.assertEqual(1, len([cookie for cookie in response.cookies if cookie.startswith('remember-cookie_')])) | ||
|
||
# Logout | ||
self.client.get(reverse('logout')) | ||
self.client.post(reverse('logout')) | ||
|
||
# Login having an invalid remember cookie | ||
self.set_invalid_remember_cookie() | ||
|
@@ -877,7 +877,7 @@ def test_phonedevice_with_remember_cookie(self, mock_signal, fake): | |
self.assertRedirects(response, resolve_url(settings.LOGIN_REDIRECT_URL)) | ||
|
||
# Logout | ||
self.client.get(reverse('logout')) | ||
self.client.post(reverse('logout')) | ||
|
||
# Ask for SMS challenge | ||
response = self._post({'auth-username': '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters