diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-21 08:51:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-03-21 09:01:50 -0400 |
commit | eaa3c8adf13d3cfa0e83a6230b445a6ac54109de (patch) | |
tree | 91207f61693c554feec349270e756388db003695 /tests/test_html.py | |
parent | 019f0996ec3dcfd6c8237b336ac8d81256e58239 (diff) | |
download | python-coveragepy-git-eaa3c8adf13d3cfa0e83a6230b445a6ac54109de.tar.gz |
test: check the HTML for context output
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index 5113cd06..89ad8d1c 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -1199,6 +1199,9 @@ class HtmlWithContextsTest(HtmlTestHelpers, CoverageTest): ] assert sorted(expected) == sorted(actual) + cov.html_report(mod, directory="out/contexts") + compare_html(gold_path("html/contexts"), "out/contexts") + def test_filtered_dynamic_contexts(self) -> None: self.make_file("two_tests.py", self.SOURCE) cov = coverage.Coverage(source=["."]) |