Skip to content

Commit 916cb39

Browse files
committed
test: add tests
1 parent 759ad10 commit 916cb39

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)