Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_module_state.py

raw symbols SCIP
1 import pytest
2
3 from .conftest import TEST_PLAYBOOKS
4 from .utils import ALL_MODULES, MODULES_PATH
5
6
7 def _module_file_path(module):
8 module_file_name = "{}.py".format(module)
9 return MODULES_PATH / module_file_name
10
11
12 def _module_is_tested(module):
13 return module in TEST_PLAYBOOKS
14
15
16 @pytest.mark.parametrize('module', ALL_MODULES)
17 def test_module_is_tested(module):
18 assert _module_is_tested(module)