mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: Remove unused fixture for testing actions
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ac7ef9e5c4
commit
4b5f48daed
15
conftest.py
15
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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user