-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
361a425
commit 54848e5
Showing
3 changed files
with
36 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -542,3 +542,20 @@ def test_get_associated_sessions(self): | |
assert ( | ||
retrieve_associated_response.status_code == 200 | ||
), retrieve_associated_response.text | ||
|
||
def test_authentication_refresh(self): | ||
self.client.post( | ||
"http://127.0.0.1:8000/api/test/account", | ||
data={ | ||
"email": "[email protected]", | ||
"username": "refreshed", | ||
}, | ||
) | ||
login_response = self.client.post( | ||
"http://127.0.0.1:8000/api/test/auth/login", | ||
auth=("[email protected]", "password"), | ||
) | ||
assert login_response.status_code == 200, login_response.text | ||
refresh_response = self.client.post("http://127.0.0.1:8000/api/test/auth/refresh") | ||
assert refresh_response.status_code == 200, refresh_response.text | ||
|