Skip to content

Commit eddbfae

Browse files
discobetadopry
authored andcommitted
try/except when looking for an access token to avoid 500
1 parent b327ea9 commit eddbfae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_authorization_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,9 +851,9 @@ def test_refresh_invalidates_old_tokens(self):
851851
self.assertIsNotNone(refresh_token.revoked)
852852
self.assertFalse(AccessToken.objects.filter(token=at).exists())
853853

854-
def test_refresh_twice_with_same_token_returns_401(self):
854+
def test_refresh_twice_with_same_token_returns_400(self):
855855
"""
856-
Ensure that using a refresh token twice returns 401
856+
Ensure that using a refresh token twice returns 400
857857
"""
858858
self.client.login(username="test_user", password="123456")
859859
authorization_code = self.get_auth()

0 commit comments

Comments
 (0)