diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-11-14 07:16:03 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-11-14 07:16:16 -0500 |
commit | ddb60a34648d9b580fe83e6cfd47cefc6462ebaf (patch) | |
tree | 74fdc5e7885068744f6c09c444a115f97b4d3daf /tests/test_html.py | |
parent | bfb166f1b6f2a67777ddc5bfa692bf1308413dc5 (diff) | |
download | python-coveragepy-git-ddb60a34648d9b580fe83e6cfd47cefc6462ebaf.tar.gz |
Compare the css files exactly
Diffstat (limited to 'tests/test_html.py')
-rw-r--r-- | tests/test_html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index 98e7b0b3..7f2954c8 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -958,7 +958,7 @@ assert len(math) == 18 a = 4 """) - self.make_file("extra.css", "/* Doesn't matter what goes in here, it gets copied. */") + self.make_file("extra.css", "/* Doesn't matter what goes in here, it gets copied. */\n") cov = coverage.Coverage() cov.start() @@ -967,7 +967,7 @@ assert len(math) == 18 cov.html_report(a, directory="out", extra_css="extra.css") compare_html(gold_path("html/gold_styled"), "out") - compare(gold_path("html/gold_styled"), "out", size_within=10, file_pattern="*.css") + compare(gold_path("html/gold_styled"), "out", file_pattern="*.css") contains( "out/a_py.html", '<link rel="stylesheet" href="extra.css" type="text/css">', |