Skip to content

Commit dcffff2

Browse files
committed
refactor: move import of check_custom_conditions to the top
1 parent 6762874 commit dcffff2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

openedx_authz/tests/test_enforcement.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from ddt import data, ddt, unpack
1515

1616
from openedx_authz import ROOT_DIRECTORY
17+
from openedx_authz.engine.matcher import check_custom_conditions
1718
from openedx_authz.tests.test_utils import (
1819
make_action_key,
1920
make_library_key,
@@ -59,9 +60,6 @@ def setUpClass(cls) -> None:
5960
"""Set up the Casbin enforcer."""
6061
super().setUpClass()
6162

62-
# pylint: disable=import-outside-toplevel
63-
from openedx_authz.engine.matcher import check_custom_conditions
64-
6563
engine_config_dir = os.path.join(ROOT_DIRECTORY, "engine", "config")
6664
model_file = os.path.join(engine_config_dir, "model.conf")
6765

0 commit comments

Comments
 (0)