diff options
author | Azrenbeth <7782548+Azrenbeth@users.noreply.github.com> | 2021-08-25 11:49:21 +0100 |
---|---|---|
committer | Azrenbeth <7782548+Azrenbeth@users.noreply.github.com> | 2021-08-25 11:49:21 +0100 |
commit | 862d820d44a45e9af20e4ab55054aa8604efccb4 (patch) | |
tree | 4fee1c35cfe563ae347687ee394d9549d315427a /tests/handlers/test_saml.py | |
parent | Added ANOTHER check for saml being enabled before loading it (diff) | |
download | synapse-github/azren/port_saml2_mapping_providers.tar.xz |
moved more saml imports behind checks github/azren/port_saml2_mapping_providers azren/port_saml2_mapping_providers
(tried everything with pysaml2 uninstalled so should now work!)
Diffstat (limited to 'tests/handlers/test_saml.py')
-rw-r--r-- | tests/handlers/test_saml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/handlers/test_saml.py b/tests/handlers/test_saml.py index 4df6a4d029..eac7f74591 100644 --- a/tests/handlers/test_saml.py +++ b/tests/handlers/test_saml.py @@ -18,7 +18,6 @@ from unittest.mock import Mock import attr from synapse.api.errors import RedirectException -from synapse.handlers.saml import load_default_or_legacy_saml2_mapping_provider from tests.test_utils import simple_async_mock from tests.unittest import HomeserverTestCase, override_config @@ -28,6 +27,8 @@ try: import saml2.config from saml2.sigver import SigverError + from synapse.handlers.saml import load_default_or_legacy_saml2_mapping_provider + has_saml2 = True # pysaml2 can be installed and imported, but might not be able to find xmlsec1. |