We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759ad10 commit 471526eCopy full SHA for 471526e
1 file changed
openedx_authz/tests/test_imports.py
@@ -0,0 +1,14 @@
1
+"""Test module imports."""
2
+from unittest import TestCase
3
+
4
5
+class TestImports(TestCase):
6
+ """Test that imports work correctly."""
7
8
+ def test_import_authzenforcer(self):
9
+ """Test that AuthzEnforcer can be imported."""
10
+ from openedx_authz.engine.enforcer import AuthzEnforcer # pylint: disable=import-outside-toplevel
11
+ try:
12
+ self.assertIsNotNone(AuthzEnforcer)
13
+ except ImportError as e:
14
+ self.fail(f"Failed to import AuthzEnforcer: {e}")
0 commit comments