Switch to snippet-based reports
This commit is contained in:
parent
da330a6058
commit
ab2af1015a
6 changed files with 97 additions and 106 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue