Hide analysis duration
This commit is contained in:
parent
d33a3f162f
commit
d1f3c5a9ae
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue