Meh
Some checks failed
Lint / test (push) Failing after 23s
CI / test (push) Successful in 45s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2025-11-28 12:51:10 +11:00
parent 78aed97302
commit 3af628e22e
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 2 additions and 18 deletions

View file

@ -66,20 +66,3 @@ def test_cli_writes_output_files(tmp_path, capsys):
# When writing to files, we shouldn't print the big headers
assert "# defaults/main.yml" not in captured.out
assert "# config.j2" not in captured.out
def test_main_wrapper_exits_with_zero(monkeypatch):
"""
Cover the main() wrapper that raises SystemExit.
"""
cfg_path = SAMPLES_DIR / "tom.toml"
monkeypatch.setattr(
sys,
"argv",
["jinjaturtle", str(cfg_path), "-r", "jinjaturtle"],
)
with pytest.raises(SystemExit) as exc:
cli.main()
assert exc.value.code