summaryrefslogtreecommitdiff
path: root/tests/farm/html/run_tabbed.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-31 07:51:51 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-31 07:51:51 -0400
commit5164d566f03894f0fe9f29dc4e9721edfdf32818 (patch)
treeb111451d253cdd48500fce07c844d6aced8fedc0 /tests/farm/html/run_tabbed.py
parent0c895c59e72c7972533a32add7a771b745fa2089 (diff)
downloadpython-coveragepy-git-5164d566f03894f0fe9f29dc4e9721edfdf32818.tar.gz
Convert farm html tests to goldtests.
Diffstat (limited to 'tests/farm/html/run_tabbed.py')
-rw-r--r--tests/farm/html/run_tabbed.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/tests/farm/html/run_tabbed.py b/tests/farm/html/run_tabbed.py
deleted file mode 100644
index 6dacff53..00000000
--- a/tests/farm/html/run_tabbed.py
+++ /dev/null
@@ -1,27 +0,0 @@
-# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
-# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
-
-def html_it():
- """Run coverage.py and make an HTML report for tabbed."""
- import coverage
- cov = coverage.Coverage()
- cov.start()
- import tabbed # pragma: nested
- cov.stop() # pragma: nested
- cov.html_report(tabbed, directory="../html_tabbed")
-
-runfunc(html_it, rundir="src")
-
-# Editors like to change things, make sure our source file still has tabs.
-contains("src/tabbed.py", "\tif x:\t\t\t\t\t# look nice")
-
-contains("html_tabbed/tabbed_py.html",
- '>&nbsp; &nbsp; &nbsp; &nbsp; <span class="key">if</span> '
- '<span class="nam">x</span><span class="op">:</span>'
- '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; '
- '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; '
- '<span class="com"># look nice</span>'
- )
-
-doesnt_contain("html_tabbed/tabbed_py.html", "\t")
-clean("html_tabbed")