Skip to content

Commit c70d43f

Browse files
committedMay 10, 2011
Actually verified that this works on py25+.
[It didn't. Fixed.]
1 parent 9754605 commit c70d43f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed
 

‎faq/tests/__init__.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from __future__ import absolute_import
2-
3-
from .test_admin import *
4-
from .test_models import *
5-
from .test_templatetags import *
6-
from .test_views import *
1+
from faq.tests.test_admin import *
2+
from faq.tests.test_models import *
3+
from faq.tests.test_templatetags import *
4+
from faq.tests.test_views import *

‎tox.ini

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
[tox]
22
downloadcache = .tox/_download/
3-
envlist = py26
3+
envlist = py25, py26, py27
44

55
[testenv]
6+
deps =
7+
mock
8+
commands =
9+
{envpython} setup.py test
10+
11+
# There's no need to measure coverage on each different pyversion (I think!)
12+
# so only do it for 2.7 (chosen arbitrarily).
13+
[testenv:py27]
614
deps =
715
coverage
816
mock
917
commands =
1018
coverage run --branch --source=faq setup.py test
1119
coverage report --omit=faq/_testrunner.py,faq/tests/*
12-
coverage html --omit=faq/_testrunner.py,faq/tests/* -d htmlcov/{envname}
13-
20+
coverage html --omit=faq/_testrunner.py,faq/tests/* -d htmlcov/

0 commit comments

Comments
 (0)
Please sign in to comment.