Description
All 17 CLI tests depend on the external ansible-vault binary. Without it installed, the entire CLI test suite is skipped. This creates a fragile test setup.
Proposed Solution
- Mock
decrypt_vault and encrypt_vault from vault.py in CLI tests
- Keep existing tests as integration tests with
pytest.mark.integration
- New unit tests in
test_cli_unit.py that run without ansible-vault
Acceptance Criteria
Priority
P1 — must fix
Description
All 17 CLI tests depend on the external
ansible-vaultbinary. Without it installed, the entire CLI test suite is skipped. This creates a fragile test setup.Proposed Solution
decrypt_vaultandencrypt_vaultfromvault.pyin CLI testspytest.mark.integrationtest_cli_unit.pythat run without ansible-vaultAcceptance Criteria
initcommand has test coverage (currently 0%)Priority
P1 — must fix