summaryrefslogtreecommitdiff
path: root/tests/test_html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-13 07:48:10 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-13 07:48:10 -0500
commit24145b0bb0368868b8aa2e8cc0eb43324533367d (patch)
tree2c2bf2ac5cfb28309a02c2b365b05faf42ed7f50 /tests/test_html.py
parent9047a7742ad67bb36440299c2ef1e48ee7108c20 (diff)
downloadpython-coveragepy-git-24145b0bb0368868b8aa2e8cc0eb43324533367d.tar.gz
More progress on better missed-branch descriptions
Diffstat (limited to 'tests/test_html.py')
-rw-r--r--tests/test_html.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_html.py b/tests/test_html.py
index fda68aeb..67c6d9b6 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -525,15 +525,12 @@ class HtmlGoldTests(CoverageGoldTest):
'<span class="num">3</span>'),
'<span class="pc_cov">70%</span>',
('<span class="annotate short">8&#x202F;&#x219B;&#x202F;11</span>'
- '<span class="annotate long">Line 8 was executed, '
- 'but didn\'t jump to line 11</span>'),
+ '<span class="annotate long">line 8 didn\'t jump to line 11, because the condition on line 8 was never false</span>'),
('<span class="annotate short">17&#x202F;&#x219B;&#x202F;exit</span>'
- '<span class="annotate long">Line 17 was executed, '
- 'but didn\'t exit function "two"</span>'),
+ '<span class="annotate long">line 17 didn\'t return from function \'two\', because the condition on line 17 was never false</span>'),
('<span class="annotate short">25&#x202F;&#x219B;&#x202F;26,&nbsp;&nbsp; '
'25&#x202F;&#x219B;&#x202F;28</span>'
- '<span class="annotate long">Line 25 was executed, '
- 'but didn\'t jump to line 26 or jump to line 28</span'),
+ '<span class="annotate long">2 missed branches: 1) line 25 didn\'t jump to line 26, because the condition on line 25 was never true, 2) line 25 didn\'t jump to line 28, because the condition on line 25 was never false</span>'),
)
contains(
"out/b_branch/index.html",