Skip to content

Commit 89849ab

Browse files
update qunit test fixture
1 parent b062c66 commit 89849ab

File tree

1 file changed

+47
-45
lines changed

1 file changed

+47
-45
lines changed

testing/js_test_report.html

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -14,51 +14,53 @@
1414
<script src="test.js"></script>
1515
<script src="../pytest_html/resources/main.js" data-cover></script>
1616
<div id="qunit-fixture">
17-
<table id="results-table">
18-
<thead id="results-table-head">
19-
<tr>
20-
<th class="sortable result initial-sort" col="result">Result</th>
21-
<th class="sortable" col="name">Test</th>
22-
<th class="sortable numeric" col="duration">Duration</th>
23-
<th>Links</th></tr>
24-
<tr hidden="true" id="not-found-message">
25-
<th colspan="5">No results found. Try to check the filters</th>
26-
</tr>
27-
</thead>
28-
<tbody class="rerun results-table-row">
29-
<tr>
30-
<td class="col-result">Rerun</td>
31-
<td class="test-1 col-name">rerun.py::test_rexample_1</td>
32-
<td class="col-duration">1.00</td>
33-
<td class="col-links"></td></tr>
34-
<tr>
35-
<td class="extra" colspan="5">
36-
<div class="log">@pytest.mark.flaky(reruns=5)<br/> def test_example():<br/> import random<br/>&gt; assert random.choice([True, False])<br/><span class="error">E assert False</span><br/><span class="error">E + where False = &lt;bound method Random.choice of &lt;random.Random object at 0x7fe80b85f420&gt;&gt;([True, False])</span><br/><span class="error">E + where &lt;bound method Random.choice of &lt;random.Random object at 0x7fe80b85f420&gt;&gt; = &lt;module 'random' from '/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.pyc'&gt;.choice</span><br/><br/>rerun.py:6: AssertionError<br/></div></td></tr></tbody>
37-
<tbody class="passed results-table-row">
38-
<tr>
39-
<td class="col-result">Passed</td>
40-
<td class="test-2 col-name">rerun.py::test_example_2</td>
41-
<td class="col-duration">0.00</td>
42-
<td class="col-links"></td></tr>
43-
<tr>
44-
<td class="extra" colspan="5">
45-
<div class="empty log">No log output captured.</div>
46-
</td>
47-
</tr>
48-
</tbody>
49-
<tbody class="passed results-table-row">
50-
<tr>
51-
<td class="col-result">Passed</td>
52-
<td class="test-3 col-name">rerun.py::test_example_3</td>
53-
<td class="col-duration">0.00</td>
54-
<td class="col-links"></td></tr>
55-
<tr>
56-
<td class="extra" colspan="5">
57-
<div class="empty log">No log output captured.</div>
58-
</td>
59-
</tr>
60-
</tbody>
61-
</table>
17+
<div id="results-container">
18+
<table id="results-table">
19+
<thead id="results-table-head">
20+
<tr>
21+
<th class="sortable result initial-sort" col="result">Result</th>
22+
<th class="sortable" col="name">Test</th>
23+
<th class="sortable numeric" col="duration">Duration</th>
24+
<th>Links</th></tr>
25+
<tr hidden="true" id="not-found-message">
26+
<th colspan="5">No results found. Try to check the filters</th>
27+
</tr>
28+
</thead>
29+
<tbody class="rerun results-table-row">
30+
<tr>
31+
<td class="col-result">Rerun</td>
32+
<td class="test-1 col-name">rerun.py::test_rexample_1</td>
33+
<td class="col-duration">1.00</td>
34+
<td class="col-links"></td></tr>
35+
<tr>
36+
<td class="extra" colspan="5">
37+
<div class="log">@pytest.mark.flaky(reruns=5)<br/> def test_example():<br/> import random<br/>&gt; assert random.choice([True, False])<br/><span class="error">E assert False</span><br/><span class="error">E + where False = &lt;bound method Random.choice of &lt;random.Random object at 0x7fe80b85f420&gt;&gt;([True, False])</span><br/><span class="error">E + where &lt;bound method Random.choice of &lt;random.Random object at 0x7fe80b85f420&gt;&gt; = &lt;module 'random' from '/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.pyc'&gt;.choice</span><br/><br/>rerun.py:6: AssertionError<br/></div></td></tr></tbody>
38+
<tbody class="passed results-table-row">
39+
<tr>
40+
<td class="col-result">Passed</td>
41+
<td class="test-2 col-name">rerun.py::test_example_2</td>
42+
<td class="col-duration">0.00</td>
43+
<td class="col-links"></td></tr>
44+
<tr>
45+
<td class="extra" colspan="5">
46+
<div class="empty log">No log output captured.</div>
47+
</td>
48+
</tr>
49+
</tbody>
50+
<tbody class="passed results-table-row">
51+
<tr>
52+
<td class="col-result">Passed</td>
53+
<td class="test-3 col-name">rerun.py::test_example_3</td>
54+
<td class="col-duration">0.00</td>
55+
<td class="col-links"></td></tr>
56+
<tr>
57+
<td class="extra" colspan="5">
58+
<div class="empty log">No log output captured.</div>
59+
</td>
60+
</tr>
61+
</tbody>
62+
</table>
63+
</div>
6264
</div>
6365
</body>
6466
</html>

0 commit comments

Comments
 (0)