diff options
| author | Theron Luhn <theron@luhn.com> | 2018-09-02 10:52:18 -0700 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2018-09-02 10:52:18 -0700 |
| commit | f7df56a9286b3fd06d636ef43ab3d4a4c86c1918 (patch) | |
| tree | b2422491b91fa8110b9e7801948c882db4f77a79 /tests/oauth2/rfc6749 | |
| parent | 997e8d061ae883a6460aeda71ab12b2b5bd4feed (diff) | |
| download | oauthlib-f7df56a9286b3fd06d636ef43ab3d4a4c86c1918.tar.gz | |
Fix test_error_catching.
Diffstat (limited to 'tests/oauth2/rfc6749')
| -rw-r--r-- | tests/oauth2/rfc6749/endpoints/test_base_endpoint.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/oauth2/rfc6749/endpoints/test_base_endpoint.py b/tests/oauth2/rfc6749/endpoints/test_base_endpoint.py index 4ad0ed9..4f78d9b 100644 --- a/tests/oauth2/rfc6749/endpoints/test_base_endpoint.py +++ b/tests/oauth2/rfc6749/endpoints/test_base_endpoint.py @@ -24,7 +24,9 @@ class BaseEndpointTest(TestCase): validator = RequestValidator() server = Server(validator) server.catch_errors = True - h, b, s = server.create_authorization_response('https://example.com') + h, b, s = server.create_token_response( + 'https://example.com?grant_type=authorization_code&code=abc' + ) self.assertIn("server_error", b) self.assertEqual(s, 500) |
