Skip to content

Commit 4e37f8b

Browse files
committed
Use django-discover-runner on older Djangos.
1 parent e75309b commit 4e37f8b

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

requirements_dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ coverage
1313
flake8
1414
selenium
1515
tox
16+
django-discover-runner
1617

1718
# Documentation
1819

tests/settings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""Django settings for tests."""
22

33
import os
4+
import django
5+
46
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
57

68

@@ -64,3 +66,6 @@
6466
# Django's test client sets wsgi.multiprocess to True inappropriately
6567
'RENDER_PANELS': False,
6668
}
69+
70+
if django.VERSION[:2] < (1, 6):
71+
TEST_RUNNER = 'discover_runner.DiscoverRunner'

tests/tests.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ commands = make test
1717
deps =
1818
selenium
1919
sqlparse
20+
django-discover-runner
2021
setenv =
2122
PYTHONPATH = {toxinidir}
2223
whitelist_externals = make

0 commit comments

Comments
 (0)