Meh
This commit is contained in:
parent
78aed97302
commit
3af628e22e
3 changed files with 2 additions and 18 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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)]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue