update python dependencies
This commit is contained in:
@ -241,6 +241,17 @@ class ApiTestCaseMixin(OAuth2Mixin, RandomMixin):
|
||||
error='invalid_client',
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def assert_invalid_grant(
|
||||
response: TestResponse, error_description: Optional[str] = None
|
||||
) -> Dict:
|
||||
return assert_oauth_errored_response(
|
||||
response,
|
||||
400,
|
||||
error='invalid_grant',
|
||||
error_description=error_description,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def assert_invalid_request(
|
||||
response: TestResponse, error_description: Optional[str] = None
|
||||
|
@ -554,7 +554,7 @@ class TestOAuthIssueAccessToken(OAuthIssueTokenTestCase):
|
||||
headers=dict(content_type='multipart/form-data'),
|
||||
)
|
||||
|
||||
self.assert_invalid_request(response)
|
||||
self.assert_invalid_grant(response)
|
||||
|
||||
def test_it_returns_error_when_grant_type_is_not_authorization_code(
|
||||
self, app: Flask, user_1: User
|
||||
@ -592,7 +592,7 @@ class TestOAuthIssueAccessToken(OAuthIssueTokenTestCase):
|
||||
headers=dict(content_type='multipart/form-data'),
|
||||
)
|
||||
|
||||
self.assert_invalid_request(response)
|
||||
self.assert_invalid_grant(response)
|
||||
|
||||
def test_it_returns_access_token(self, app: Flask, user_1: User) -> None:
|
||||
oauth_client, code = self.create_authorized_oauth_client(app, user_1)
|
||||
|
Reference in New Issue
Block a user