MCPcopy
hub / github.com/MinishLab/semble / test_savings_tolerates_bad_json

Function test_savings_tolerates_bad_json

tests/test_stats.py:84–88  ·  view source on GitHub ↗

Malformed JSON lines are skipped with a warning.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

82
83
84def test_savings_tolerates_bad_json(tmp_path: Path) -> None:
85 """Malformed JSON lines are skipped with a warning."""
86 stats_file = tmp_path / "stats.jsonl"
87 stats_file.write_text("not valid json\n")
88 assert "Savings" in format_savings_report(path=stats_file)
89
90
91def test_savings_cli_dispatch(

Callers

nothing calls this directly

Calls 1

format_savings_reportFunction · 0.90

Tested by

no test coverage detected