get tox test working with Django1.8.

This commit is contained in:
Andy Baker 2015-07-04 12:49:53 +01:00
parent 8b144dddf0
commit 57e3ae902c
4 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ try:
TEST_RUNNER = 'django_coverage.coverage_runner.CoverageRunner'
COVERAGE_REPORT_HTML_OUTPUT_DIR = os.path.join(PROJECT_PATH, '_coverage')
except ImportError:
TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
ADMIN_TOOLS_INDEX_DASHBOARD = 'test_proj.dashboard.CustomIndexDashboard'

View File

@ -3,7 +3,7 @@ import sys
class AdminBasicTest(TestCase):
fixtures = ['initial_data.json']
fixtures = ['users.json']
def test_admin_loads(self):
for (username, password) in (('superuser', '123'), ('staff', '123')):

View File

@ -24,4 +24,4 @@ deps =
[testenv]
commands =
python -V
./runtests.sh
python test_proj/manage.py test