blob: 9f4b8690d862fe566ff6103fdd99606d999e4b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import sys
def html_it():
"""Run coverage and make an HTML report for isolatin1.py."""
import coverage
cov = coverage.coverage()
cov.start()
import isolatin1
cov.stop()
cov.html_report(isolatin1, directory="../html_isolatin1")
runfunc(html_it, rundir="src")
# HTML files will change often. Check that the sizes are reasonable,
# and check that certain key strings are in the output.
compare("gold_isolatin1", "html_isolatin1", size_within=10, file_pattern="*.html")
contains("html_isolatin1/isolatin1.html",
"<span class='str'>"3×4 = 12, ÷2 = 6±0"</span>",
)
clean("html_isolatin1")
|