diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-11-03 23:38:41 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-11-03 23:38:41 -0700 |
commit | de33ff316211ca35c87232cf594ef06a8daf0806 (patch) | |
tree | 56cfab7255b693b3f812771eaf5d8656e808820b /pystache/tests/common.py | |
parent | 661a959bf3ecf9c6592d3047089c2b44cf1042e3 (diff) | |
download | pystache-de33ff316211ca35c87232cf594ef06a8daf0806.tar.gz |
Allow tox to run from a downloaded sdist (i.e. without spec tests).
Diffstat (limited to 'pystache/tests/common.py')
-rw-r--r-- | pystache/tests/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pystache/tests/common.py b/pystache/tests/common.py index 99be4c8..222e14f 100644 --- a/pystache/tests/common.py +++ b/pystache/tests/common.py @@ -19,7 +19,6 @@ DATA_DIR = os.path.join(_TESTS_DIR, 'data') # i.e. 'pystache/tests/data'. EXAMPLES_DIR = os.path.dirname(examples.__file__) PACKAGE_DIR = os.path.dirname(pystache.__file__) PROJECT_DIR = os.path.join(PACKAGE_DIR, '..') -SPEC_TEST_DIR = os.path.join(PROJECT_DIR, 'ext', 'spec', 'specs') # TEXT_DOCTEST_PATHS: the paths to text files (i.e. non-module files) # containing doctests. The paths should be relative to the project directory. TEXT_DOCTEST_PATHS = ['README.md'] @@ -27,6 +26,10 @@ TEXT_DOCTEST_PATHS = ['README.md'] UNITTEST_FILE_PREFIX = "test_" +def get_spec_test_dir(project_dir): + return os.path.join(project_dir, 'ext', 'spec', 'specs') + + def html_escape(u): """ An html escape function that behaves the same in both Python 2 and 3. |