summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2016-01-25 14:29:24 -0500
committerSimon Charette <charette.s@gmail.com>2016-01-25 22:02:51 -0500
commit645fddcd4ee6adaa619b90404b85ccc8d9c316d8 (patch)
tree549014ad0ce9245b99517703cbf6dc3a34d658ef
parentabdbf00815ae8f49247082528d02a3d0890785a9 (diff)
[1.9.x] Refs #24919 -- Used the documented way of disabling migrations per app.
Backport of 477274acb46b2f07666e9f84dea2e65ea6b63ad3 from master
-rwxr-xr-xtests/runtests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/runtests.py b/tests/runtests.py
index e231773850..7740387e29 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -153,11 +153,11 @@ def setup(verbosity, test_labels, parallel):
settings.SITE_ID = 1
settings.MIDDLEWARE_CLASSES = ALWAYS_MIDDLEWARE_CLASSES
settings.MIGRATION_MODULES = {
- # these 'tests.migrations' modules don't actually exist, but this lets
- # us skip creating migrations for the test models.
- 'auth': 'django.contrib.auth.tests.migrations',
- 'contenttypes': 'contenttypes_tests.migrations',
- 'sessions': 'sessions_tests.migrations',
+ # This lets us skip creating migrations for the test models as many of
+ # them depend on one of the following contrib applications.
+ 'auth': None,
+ 'contenttypes': None,
+ 'sessions': None,
}
log_config = copy.deepcopy(DEFAULT_LOGGING)
# Filter out non-error logging so we don't have to capture it in lots of