INNER CODE UNIT · Python
test_plugins_updated_tests
O-X-L/ansible-opnsense · scripts/get_changed_modules_pytest.py:142
def test_plugins_updated_tests():
_write_changes([
'.github/workflows/functional_test_pr.yml',
'tests/openvpn_server.py',
'tests/not-a-module.py',
'scripts/get_changed_modules.py',
])
from get_changed_modules import main
main(TEST_FILE_CHANGES, TEST_FILE_MODULES)
m = _read_changed_modules()
assert len(m) == 1
assert m[0] == 'openvpn_server'
def test_cleanup():
from os import remove