Increase test startup time by disabling migrations during tests

This commit is contained in:
Raphael Michel
2017-12-14 11:04:50 +01:00
parent 15aff6030c
commit ef42055de1

View File

@@ -38,3 +38,17 @@ CACHES = {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
# Don't run migrations
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return None
MIGRATION_MODULES = DisableMigrations()