Savings subcommand dispatches to format_savings_report.
(
tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
)
| 89 | |
| 90 | |
| 91 | def test_savings_cli_dispatch( |
| 92 | tmp_path: Path, monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str] |
| 93 | ) -> None: |
| 94 | """Savings subcommand dispatches to format_savings_report.""" |
| 95 | monkeypatch.setattr(sys, "argv", ["semble", "savings"]) |
| 96 | monkeypatch.setattr("semble.stats._get_stats_file", lambda: tmp_path / "nonexistent.jsonl") |
| 97 | _cli_main() |
| 98 | assert "No stats yet" in capsys.readouterr().out |
| 99 | |
| 100 | |
| 101 | def test_savings_buckets_exclude_old_records(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected