Hide analysis duration

This commit is contained in:
Jordan Wages 2025-07-19 03:30:08 -05:00
commit d1f3c5a9ae
3 changed files with 5 additions and 2 deletions

View file

@ -184,6 +184,8 @@ def test_generate_root_index(tmp_path, sample_reports, monkeypatch):
(tmp_path / "output" / "domains" / "bar.com").mkdir(parents=True)
# add an extra directory with capitalized name to ensure it's ignored
(tmp_path / "output" / "Global").mkdir(parents=True)
# add an analysis directory to ensure it's excluded
(tmp_path / "output" / "analysis").mkdir(parents=True)
gr._generate_root_index()
@ -196,6 +198,7 @@ def test_generate_root_index(tmp_path, sample_reports, monkeypatch):
assert '<option value="daily">' in content
assert '<option value="global">' not in content
assert '<option value="Global">' not in content
assert '<option value="analysis">' not in content
# check for domain options
assert '<option value="foo.com">' in content