Skip to content

Commit 2387290

Browse files
committed
refactor: more precise test name
1 parent 80b5393 commit 2387290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_oauth2_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,9 @@ def setUpTestData(cls):
501501
cls.introspection_token = "test_introspection_token"
502502
cls.validator = OAuth2Validator()
503503

504-
def test_response_when_auth_server_response_return_404_405(self):
504+
def test_response_when_auth_server_response_not_200(self):
505505
"""
506-
Deal with either 404 or 405 response
506+
Ensure we log the error when the authentication server returns a non-200 response.
507507
"""
508508
with self.assertLogs(logger="oauth2_provider") as mock_log:
509509
self.validator._get_token_from_authentication_server(

0 commit comments

Comments
 (0)