summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-14 12:58:52 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-14 17:55:39 -0700
commit2e966c97e29189f129e033562a763ed813a6928d (patch)
tree798f78e96b790f521895501afb4c9028c5d961e3
parent2045a868545d69044b4c1684dc9a66a765027b6c (diff)
downloadpyscss-2e966c97e29189f129e033562a763ed813a6928d.tar.gz
Make py.test parametrization show friendlier test names.
-rw-r--r--scss/tests/conftest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scss/tests/conftest.py b/scss/tests/conftest.py
index 9f842e3..d507cfc 100644
--- a/scss/tests/conftest.py
+++ b/scss/tests/conftest.py
@@ -4,7 +4,7 @@ import glob
import os.path
import re
-FILES_DIR = os.path.join(os.path.dirname(__file__), 'files')
+FILES_DIR = os.path.relpath(os.path.join(os.path.dirname(__file__), 'files'))
test_file_pairs = None # edited below
def pytest_configure(config):
@@ -41,4 +41,5 @@ def pytest_generate_tests(metafunc):
"""
if 'scss_file_pair' in metafunc.fixturenames:
- metafunc.parametrize('scss_file_pair', test_file_pairs)
+ ids = [scss_fn for (scss_fn, css_fn) in test_file_pairs]
+ metafunc.parametrize('scss_file_pair', test_file_pairs, ids=ids)