Skip to content

Commit 29fdcf1

Browse files
Switched to py.test. Run tests for django 1.9 separately.
1 parent 883c253 commit 29fdcf1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
DJANGO_SETTINGS_MODULE=test_app.settings

test_app/settings.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33

44
INSTALLED_APPS = (
55
'mailqueue',
6-
'django_nose',
76
)
87

9-
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
108

119
DATABASES = {
1210
'default': {

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
[tox]
2-
envlist = py27-django-{latest,18}
2+
envlist = py27-django-{latest,18,19}
33

44
[testenv]
55
deps =
66
django-latest: django
77
django-18: django>=1.8, <1.9
8-
django-nose
8+
django-19: django>=1.9, <1.10
9+
pytest-django
910
setenv =
1011
DJANGO_SETTINGS_MODULE=test_app.settings
1112
PYTHONPATH={toxinidir}
1213
commands =
13-
django-admin.py test mailqueue
14+
py.test

0 commit comments

Comments
 (0)