summary refs log tree commit diff
path: root/tests/handlers/test_saml.py
diff options
context:
space:
mode:
authorAzrenbeth <7782548+Azrenbeth@users.noreply.github.com>2021-08-25 11:49:21 +0100
committerAzrenbeth <7782548+Azrenbeth@users.noreply.github.com>2021-08-25 11:49:21 +0100
commit862d820d44a45e9af20e4ab55054aa8604efccb4 (patch)
tree4fee1c35cfe563ae347687ee394d9549d315427a /tests/handlers/test_saml.py
parentAdded ANOTHER check for saml being enabled before loading it (diff)
downloadsynapse-github/azren/port_saml2_mapping_providers.tar.xz
(tried everything with pysaml2 uninstalled so should now work!)
Diffstat (limited to 'tests/handlers/test_saml.py')
-rw-r--r--tests/handlers/test_saml.py3
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.