synapse/tests/handlers
Richard van der Hoff 895e04319b
Preparatory refactoring of the OidcHandlerTestCase (#8911)
* Remove references to handler._auth_handler

(and replace them with hs.get_auth_handler)

* Factor out a utility function for building Requests

* Remove mocks of `OidcHandler._map_userinfo_to_user`

This method is going away, so mocking it out is no longer a valid approach.

Instead, we mock out lower-level methods (eg _remote_id_from_userinfo), or
simply allow the regular implementation to proceed and update the expectations
accordingly.

* Remove references to `OidcHandler._map_userinfo_to_user` from tests

This method is going away, so we can no longer use it as a test point. Instead
we build mock "callback" requests which we pass into `handle_oidc_callback`,
and verify correct behaviour by mocking out `AuthHandler.complete_sso_login`.
2020-12-14 11:38:50 +00:00
..
__init__.py
test_admin.py
test_appservice.py
test_auth.py
test_device.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_directory.py Remove redundant mocking 2020-12-02 17:53:38 +00:00
test_e2e_keys.py
test_e2e_room_keys.py
test_federation.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_message.py
test_oidc.py Preparatory refactoring of the OidcHandlerTestCase (#8911) 2020-12-14 11:38:50 +00:00
test_password_providers.py
test_presence.py Apply an IP range blacklist to push and key revocation requests. (#8821) 2020-12-02 11:09:24 -05:00
test_profile.py Remove redundant mocking 2020-12-02 17:53:38 +00:00
test_register.py
test_saml.py Skip the SAML tests if xmlsec1 isn't available. (#8905) 2020-12-09 12:23:30 -05:00
test_stats.py
test_sync.py
test_typing.py Merge pull request #8858 from matrix-org/rav/sso_uia 2020-12-02 20:06:53 +00:00
test_user_directory.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00