INNER CODE UNIT · Python

_write_changes

O-X-L/ansible-opnsense · scripts/get_changed_modules_pytest.py:7

def _write_changes(changes: list[str]):
    with open(TEST_FILE_CHANGES, 'w', encoding='utf-8') as f:
        f.write('\n'.join(changes))


def _read_changed_modules() -> list[str]:
    with open(TEST_FILE_MODULES, 'r', encoding='utf-8') as f:
        return [m.strip() for m in f.readlines()]


def test_none():
    _write_changes([
        '.github/workflows/functional_test_pr.yml',
        'plugins/module_utils/main/test123.py',
        'scripts/get_changed_modules.py',
    ])

    from get_changed_modules import main

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…