Kaydet (Commit) 477274ac authored tarafından Simon Charette's avatar Simon Charette

Refs #24919 -- Used the documented way of disabling migrations per app.

üst 4dcaa587
...@@ -149,11 +149,11 @@ def setup(verbosity, test_labels, parallel): ...@@ -149,11 +149,11 @@ def setup(verbosity, test_labels, parallel):
settings.SITE_ID = 1 settings.SITE_ID = 1
settings.MIDDLEWARE_CLASSES = ALWAYS_MIDDLEWARE_CLASSES settings.MIDDLEWARE_CLASSES = ALWAYS_MIDDLEWARE_CLASSES
settings.MIGRATION_MODULES = { settings.MIGRATION_MODULES = {
# these 'tests.migrations' modules don't actually exist, but this lets # This lets us skip creating migrations for the test models as many of
# us skip creating migrations for the test models. # them depend on one of the following contrib applications.
'auth': 'django.contrib.auth.tests.migrations', 'auth': None,
'contenttypes': 'contenttypes_tests.migrations', 'contenttypes': None,
'sessions': 'sessions_tests.migrations', 'sessions': None,
} }
log_config = copy.deepcopy(DEFAULT_LOGGING) log_config = copy.deepcopy(DEFAULT_LOGGING)
# Filter out non-error logging so we don't have to capture it in lots of # Filter out non-error logging so we don't have to capture it in lots of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment