Commit 7a39c02e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_openid_connect_client_login: Remove unused test

parent d3d4df63
......@@ -290,20 +290,6 @@ return credential_request
oidc_login = person.objectValues(portal_types="OpenId Connect Login")[0]
self.assertEqual(getUserId(None), oidc_login.getReference())
def test_redirect(self):
"""
Check URL generate to redirect to OpenId Connect
"""
return "EXpected Failure"
self.logout()
self.portal.ERP5Site_redirectToOpenIdLoginPage()
location = self.portal.REQUEST.RESPONSE.getHeader("Location")
self.assertIn(URL_STRING, location)
self.assertIn("response_type=code", location)
self.assertIn("client_id=%s" % CLIENT_ID, location)
self.assertNotIn("secret_key=", location)
self.assertIn("https://testdomain.erp5.net/hateoas/connection/oid_auth", location)
class TestERP5JSOpenIdConnectLogin(OpenIdConnectLoginTestCase):
def _getWebSite(self):
......
......@@ -51,9 +51,7 @@
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:298, 4: Unreachable code (unreachable)</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment