From 4b5f48daed7aa08f277bdf6c01a7da8d93402bba Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 10 Mar 2024 11:40:41 -0700 Subject: [PATCH] tests: Remove unused fixture for testing actions Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- conftest.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/conftest.py b/conftest.py index 244b98ade..a5611c477 100644 --- a/conftest.py +++ b/conftest.py @@ -133,21 +133,6 @@ def splinter_browser_load_condition(): return _load_condition -@pytest.fixture(name='actions_module', scope='module') -def fixture_actions_module(request): - """Import and return an action module.""" - actions_name = getattr(request.module, 'actions_name') - actions_file = str( - pathlib.Path(__file__).parent / 'actions' / actions_name) - - loader = importlib.machinery.SourceFileLoader(actions_name, actions_file) - spec = importlib.util.spec_from_loader(actions_name, loader) - module = importlib.util.module_from_spec(spec) - sys.modules[actions_name] = module - spec.loader.exec_module(module) - return module - - @pytest.fixture(name='mock_privileged') def fixture_mock_privileged(request): """Mock the privileged decorator to nullify its effects."""