diff --git a/README.md b/README.md index 27fc7c5..8e74d67 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # JinjaTurtle +## ARCHIVED: I'm no longer working on this project, it didn't work as well as I'd hoped. ## +
JinjaTurtle logo
diff --git a/src/jinjaturtle/loop_analyzer.py b/src/jinjaturtle/loop_analyzer.py index fd7e0b5..492c2c1 100644 --- a/src/jinjaturtle/loop_analyzer.py +++ b/src/jinjaturtle/loop_analyzer.py @@ -325,7 +325,6 @@ class LoopAnalyzer: def _walk_xml_element(self, elem: Any, path: tuple[str, ...]) -> None: """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)] diff --git a/tests/test_cli.py b/tests/test_cli.py index 21ebd54..705250f 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -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