-
- Downloads
Preparatory refactoring of the SamlHandlerTestCase (#8938)
* move simple_async_mock to test_utils ... so that it can be re-used * Remove references to `SamlHandler._map_saml_response_to_user` from tests This method is going away, so we can no longer use it as a test point. Instead, factor out a higher-level method which takes a SAML object, and verify correct behaviour by mocking out `AuthHandler.complete_sso_login`. * changelog
Showing
- changelog.d/8938.feature 1 addition, 0 deletionschangelog.d/8938.feature
- synapse/handlers/saml_handler.py 23 additions, 0 deletionssynapse/handlers/saml_handler.py
- tests/handlers/test_oidc.py 1 addition, 11 deletionstests/handlers/test_oidc.py
- tests/handlers/test_saml.py 89 additions, 43 deletionstests/handlers/test_saml.py
- tests/test_utils/__init__.py 12 additions, 0 deletionstests/test_utils/__init__.py
changelog.d/8938.feature
0 → 100644
Please register or sign in to comment