summaryrefslogtreecommitdiff
path: root/tests/goldtest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-08-22 10:03:33 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-08-24 06:54:17 -0400
commit7f5fb57e3e264f134c162dfb25c92e2b2d0e79e0 (patch)
tree6102f4cff83c1d5653ef86742052ab287cd1b69b /tests/goldtest.py
parent6df4275aa5e15e0f9033946837c1168a7dec00d5 (diff)
downloadpython-coveragepy-git-7f5fb57e3e264f134c162dfb25c92e2b2d0e79e0.tar.gz
Stop using farm/src for HTML tests.
Diffstat (limited to 'tests/goldtest.py')
-rw-r--r--tests/goldtest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/goldtest.py b/tests/goldtest.py
index 8f24f239..af471a14 100644
--- a/tests/goldtest.py
+++ b/tests/goldtest.py
@@ -8,13 +8,17 @@ import sys
from unittest_mixins import change_dir # pylint: disable=unused-import
-from tests.coveragetest import CoverageTest
+from tests.coveragetest import CoverageTest, TESTS_DIR
from tests.test_farm import clean
# Import helpers, eventually test_farm.py will go away.
from tests.test_farm import ( # pylint: disable=unused-import
compare, contains, doesnt_contain, contains_any,
)
+def gold_path(path):
+ """Get a path to a gold file for comparison."""
+ return os.path.join(TESTS_DIR, "farm", path)
+
class CoverageGoldTest(CoverageTest):
"""A test based on gold files."""