MeB OAuth - latest iteration #390
65 fail, 5 skipped, 109 pass in 26s
Annotations
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_approval_prompt_auto (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_approval_prompt_auto>
def test_oauth_approval_prompt_auto(self):
application = self.create_oauth_app(redirect_uris=[
"https://example.com/callback1",
"https://example.com/callback2"
])
> code1 = self.authorize_success_for_token_grant_helper(application, "https://example.com/callback1")
oauth/tests/test_oauth_authorization_code.py:532:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_approval_prompt_force (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_approval_prompt_force>
def test_oauth_approval_prompt_force(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:541:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_approval_prompt_invalid (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: Template oauth/error.html not used. Templates were used: [ < T e m p l a t e ' e r r o r s / 5 0 0 . h t m l ' > ]
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_approval_prompt_invalid>
def test_oauth_approval_prompt_invalid(self):
application = self.create_oauth_app(redirect_uris=[
"https://example.com/callback1",
"https://example.com/callback2"
])
query_string = {
"client_id": application["client_id"],
"response_type": "code",
"scope": "test-scope-1",
"state": "random-state",
"redirect_uri": "https://example.com/callback2",
"approval_prompt": "invalid",
}
error = {"name": "invalid_request", "description": "Invalid \"approval_prompt\" in request."}
> self.authorize_error_helper(self.user2, query_string, error)
oauth/tests/test_oauth_authorization_code.py:571:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:215: in authorize_error_helper
self.assertTemplateUsed("oauth/error.html")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_approval_prompt_invalid>
name = 'oauth/error.html', tmpl_name_attribute = 'name'
def assertTemplateUsed(self, name, tmpl_name_attribute='name'):
"""
Checks if a given template is used in the request.
Only works if your version of Flask has signals
support (0.6+) and blinker is installed.
If the template engine used is not Jinja2, provide
``tmpl_name_attribute`` with a value of its `Template`
class attribute name which contains the provided ``name`` value.
:versionadded: 0.2
:param name: template name
:param tmpl_name_attribute: template engine specific attribute name
"""
_check_for_signals_support()
used_templates = []
for template, context in self.templates:
if getattr(template, tmpl_name_attribute) == name:
return True
used_templates.append(template)
> raise AssertionError("Template %s not used. Templates were used: %s" % (name, ' '.join(repr(used_templates))))
E AssertionError: Template oauth/error.html not used. Templates were used: [ < T e m p l a t e ' e r r o r s / 5 0 0 . h t m l ' > ]
/usr/local/lib/python3.11/site-packages/flask_testing/utils.py:254: AssertionError
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_approval_prompt_none (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_approval_prompt_none>
def test_oauth_approval_prompt_none(self):
application = self.create_oauth_app(redirect_uris=[
"https://example.com/callback1",
"https://example.com/callback2"
])
> code1 = self.authorize_success_for_token_grant_helper(application, "https://example.com/callback1")
oauth/tests/test_oauth_authorization_code.py:552:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_approval_prompt_scope_mismatch (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_approval_prompt_scope_mismatch>
def test_oauth_approval_prompt_scope_mismatch(self):
redirect_uri1 = "https://example.com/callback1"
redirect_uri2 = "https://example.com/callback2"
application = self.create_oauth_app(redirect_uris=[redirect_uri1, redirect_uri2])
> code1 = self.authorize_success_for_token_grant_helper(application, redirect_uri1)
oauth/tests/test_oauth_authorization_code.py:577:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_authorization_code_expiry (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_authorization_code_expiry>
def test_oauth_authorization_code_expiry(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:282:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_authorize_multiple_redirect_uris (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_authorize_multiple_redirect_uris>
def test_oauth_authorize_multiple_redirect_uris(self):
application = self.create_oauth_app(redirect_uris=[
"https://example.com/callback1",
"https://example.com/callback2"
])
> code1 = self.authorize_success_for_token_grant_helper(application, "https://example.com/callback1")
oauth/tests/test_oauth_authorization_code.py:486:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_basic_auth (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_basic_auth>
def test_oauth_basic_auth(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:607:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_form_post_model (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 200
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_form_post_model>
def test_oauth_form_post_model(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
query_string = {
"client_id": application["client_id"],
"response_type": "code",
"scope": "test-scope-1",
"state": "random-state",
"redirect_uri": redirect_uri,
"response_mode": "form_post"
}
self.authorize_oauth_prompt_helper(query_string)
with login_user(self.user2):
response = self.client.post("/oauth2/authorize/confirm", query_string=query_string, data={
"confirm": "yes",
"csrf_token": g.csrf_token
})
> self.assertEqual(response.status_code, 200)
E AssertionError: 500 != 200
oauth/tests/test_oauth_authorization_code.py:661: AssertionError
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_client_secret_mismatch (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_client_secret_mismatch>
def test_oauth_token_client_secret_mismatch(self):
application1 = self.create_oauth_app()
application2 = self.create_oauth_app()[1]
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application1, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_code_mismatch (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_code_mismatch>
def test_oauth_token_code_mismatch(self):
application1 = self.create_oauth_app()
application2 = self.create_oauth_app()[1]
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application1, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:303:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_code_reuse (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_code_reuse>
def test_oauth_token_code_reuse(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:258:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_invalid_client_id (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_invalid_client_id>
def test_oauth_token_invalid_client_id(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_invalid_client_secret (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_invalid_client_secret>
def test_oauth_token_invalid_client_secret(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:107:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_invalid_code (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_invalid_code>
def test_oauth_token_invalid_code(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:223:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_invalid_grant_type (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_invalid_grant_type>
def test_oauth_token_invalid_grant_type(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:122:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_invalid_redirect_uri (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_invalid_redirect_uri>
def test_oauth_token_invalid_redirect_uri(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_missing_code (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_missing_code>
def test_oauth_token_missing_code(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:241:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_missing_grant_type (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_missing_grant_type>
def test_oauth_token_missing_grant_type(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_missing_redirect_uri (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_missing_redirect_uri>
def test_oauth_token_missing_redirect_uri(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:168:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_no_client_id (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_no_client_id>
def test_oauth_token_no_client_id(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:53:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_no_client_secret (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_no_client_secret>
def test_oauth_token_no_client_secret(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_redirect_uri_mismatch (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_redirect_uri_mismatch>
def test_oauth_token_redirect_uri_mismatch(self):
redirect_uri1 = "https://example.com/callback1"
redirect_uri2 = "https://example.com/callback2"
application = self.create_oauth_app(redirect_uris=[redirect_uri1, redirect_uri2])
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri1, True)
oauth/tests/test_oauth_authorization_code.py:205:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
Check warning on line 0 in oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase
github-actions / Test Results
test_oauth_token_success (oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code.AuthorizationCodeGrantTestCase testMethod=test_oauth_token_success>
def test_oauth_token_success(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
> code = self.authorize_success_for_token_grant_helper(application, redirect_uri, True)
oauth/tests/test_oauth_authorization_code.py:22:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/__init__.py:171: in authorize_success_for_token_grant_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302
github-actions / Test Results
test_oauth_pkce_invalid_code_verifier (oauth.tests.test_oauth_authorization_code_pkce.AuthorizationCodeGrantPKCETestCase) failed
reports/tests.xml [took 0s]
Raw output
AssertionError: 500 != 302
self = <oauth.tests.test_oauth_authorization_code_pkce.AuthorizationCodeGrantPKCETestCase testMethod=test_oauth_pkce_invalid_code_verifier>
def test_oauth_pkce_invalid_code_verifier(self):
application = self.create_oauth_app()
redirect_uri = "https://example.com/callback"
for code_challenge_method in ["plain", "S256"]:
code_verifier, code_challenge = self.generate_s256_code_challenge(code_challenge_method)
> code = self._test_oauth_authorize_success_helper(application, redirect_uri, code_challenge,
code_challenge_method, only_one_code=False)
oauth/tests/test_oauth_authorization_code_pkce.py:238:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
oauth/tests/test_oauth_authorization_code_pkce.py:38: in _test_oauth_authorize_success_helper
self.assertEqual(response.status_code, 302)
E AssertionError: 500 != 302