diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2015-05-28 13:44:14 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-05-28 13:59:36 +0800 |
commit | 85916e6c56076a29c6113e169d3e4926a7c886b1 (patch) | |
tree | 6e457d6f6a7889d50eda9e6fd04d370671a03d60 /patchwork/settings | |
parent | f7aeab077874d33fc99354661bfeedf508c292b3 (diff) | |
download | patchwork-85916e6c56076a29c6113e169d3e4926a7c886b1.tar.bz2 patchwork-85916e6c56076a29c6113e169d3e4926a7c886b1.tar.xz |
tests: Remove old-style test runner module
We get the following warning on django 1.7:
System check identified some issues:
WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks like this project was generated using Django 1.5 or earlier. You should ensure your tests are all running & behaving as expected. See https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for more information.
This change removes the unneeded base test module, and moves the
patchparser doctests into a proper test module.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'patchwork/settings')
-rw-r--r-- | patchwork/settings/base.py | 2 | ||||
-rw-r--r-- | patchwork/settings/dev.py | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/patchwork/settings/base.py b/patchwork/settings/base.py index 9b52989..5b40bcb 100644 --- a/patchwork/settings/base.py +++ b/patchwork/settings/base.py @@ -113,3 +113,5 @@ COMPAT_REDIR = True # the scheme based on current access. This is useful if SSL protocol # is terminated upstream of the server (e.g. at the load balancer) FORCE_HTTPS_LINKS = False + +TEST_RUNNER = 'django.test.runner.DiscoverRunner' diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py index 6e373cc..3f2355d 100644 --- a/patchwork/settings/dev.py +++ b/patchwork/settings/dev.py @@ -42,9 +42,6 @@ DATABASES = { }, } -if django.VERSION >= (1, 7): - TEST_RUNNER = 'django.test.runner.DiscoverRunner' - # # Patchwork settings # |