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

@ -1,5 +1,7 @@
# JinjaTurtle # JinjaTurtle
## ARCHIVED: I'm no longer working on this project, it didn't work as well as I'd hoped. ##
<div align="center"> <div align="center">
<img src="https://git.mig5.net/mig5/jinjaturtle/raw/branch/main/jinjaturtle.svg" alt="JinjaTurtle logo" width="240" /> <img src="https://git.mig5.net/mig5/jinjaturtle/raw/branch/main/jinjaturtle.svg" alt="JinjaTurtle logo" width="240" />
</div> </div>

View file

@ -325,7 +325,6 @@ class LoopAnalyzer:
def _walk_xml_element(self, elem: Any, path: tuple[str, ...]) -> None: def _walk_xml_element(self, elem: Any, path: tuple[str, ...]) -> None:
"""Recursively walk XML elements looking for repeated siblings.""" """Recursively walk XML elements looking for repeated siblings."""
import xml.etree.ElementTree as ET
children = [c for c in list(elem) if isinstance(c.tag, str)] children = [c for c in list(elem) if isinstance(c.tag, str)]

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 # When writing to files, we shouldn't print the big headers
assert "# defaults/main.yml" not in captured.out assert "# defaults/main.yml" not in captured.out
assert "# config.j2" 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