mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Increase test startup time by disabling migrations during tests
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user