diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-15 09:36:35 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-15 09:36:35 -0400 |
commit | 4d05ddeeded7f3f594c0614630f467e1bf3fa629 (patch) | |
tree | 593c06219447a5643a2326f698b55a242ba5bc78 /tests/test_process.py | |
parent | 0ff5a1c8a31f701321c838eea3beea553882b269 (diff) | |
download | python-coveragepy-git-4d05ddeeded7f3f594c0614630f467e1bf3fa629.tar.gz |
fix: generate flat file names differently
Fixes a few unusual issues with reports:
- #580: HTML report generation fails on too long path
- #584: File collisions in coverage report html
- #1167: Remove leading underscore in coverage html
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_process.py b/tests/test_process.py index 04a8a2d5..58915b87 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1332,10 +1332,11 @@ class UnicodeFilePathsTest(CoverageTest): # The HTML report uses ascii-encoded HTML entities. out = self.run_command("coverage html") assert out == "" - self.assert_exists("htmlcov/\xe2_accented_py.html") + self.assert_exists("htmlcov/d_5786906b6f0ffeb4_accented_py.html") with open("htmlcov/index.html") as indexf: index = indexf.read() - assert '<a href="â_accented_py.html">â%saccented.py</a>' % os.sep in index + expected = '<a href="d_5786906b6f0ffeb4_accented_py.html">â%saccented.py</a>' + assert expected % os.sep in index # The XML report is always UTF8-encoded. out = self.run_command("coverage xml") |