mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
magic-removal: Changed runtests.py to fix import-order error in overriding settings.INSTALLED_APPS
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8d4f9f73c8
commit
710d865b9d
@ -64,12 +64,13 @@ class TestRunner:
|
|||||||
|
|
||||||
def run_tests(self):
|
def run_tests(self):
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.db import db
|
|
||||||
from django.core import management, meta
|
|
||||||
|
|
||||||
# Manually set INSTALLED_APPS to point to the test models.
|
# Manually set INSTALLED_APPS to point to the test models.
|
||||||
settings.INSTALLED_APPS = [MODEL_TESTS_DIR_NAME + '.' + a for a in get_test_models()]
|
settings.INSTALLED_APPS = [MODEL_TESTS_DIR_NAME + '.' + a for a in get_test_models()]
|
||||||
|
|
||||||
|
from django.core.db import db
|
||||||
|
from django.core import management, meta
|
||||||
|
|
||||||
# Determine which models we're going to test.
|
# Determine which models we're going to test.
|
||||||
test_models = get_test_models()
|
test_models = get_test_models()
|
||||||
if self.which_tests:
|
if self.which_tests:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user