Commit fdeec01e authored by Michal Čihař's avatar Michal Čihař

Avoid running migrations during testsuite

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 1e40a23e
......@@ -103,3 +103,16 @@ SESSION_COOKIE_HTTPONLY = False
INSTALLED_APPS += (
'weblate.billing',
)
class DisableMigrations(object):
"""Magic to disable migrations"""
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
# Avoid running migrations in testsuite
MIGRATION_MODULES = DisableMigrations()
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