Switch to snippet-based reports

This commit is contained in:
Jordan Wages 2025-07-18 23:20:13 -05:00
commit ab2af1015a
6 changed files with 97 additions and 106 deletions

View file

@ -106,6 +106,9 @@ def test_generate_interval(tmp_path, sample_reports, monkeypatch):
assert error_rate[0]["value"] == pytest.approx(50.0)
reports = json.loads((tmp_path / "output" / "hourly" / "reports.json").read_text())
assert {r["name"] for r in reports} == {"hits", "error_rate"}
for r in reports:
snippet = tmp_path / "output" / "hourly" / r["html"]
assert snippet.exists()
def test_generate_interval_domain_filter(tmp_path, sample_reports, monkeypatch):