diff --git a/ietf/settings_sqlitetest.py b/ietf/settings_sqlitetest.py index 4413691d9..bf00b9f47 100644 --- a/ietf/settings_sqlitetest.py +++ b/ietf/settings_sqlitetest.py @@ -1,5 +1,6 @@ -# Standard settings except we use SQLite, this is useful for speeding -# up tests that depend on the test database, try for instance: +# Standard settings except we use SQLite and skip migrations, this is +# useful for speeding up tests that depend on the test database, try +# for instance: # # ./manage.py test --settings=settings_sqlitetest doc.ChangeStateTestCase # @@ -12,3 +13,12 @@ DATABASES = { 'ENGINE': 'django.db.backends.sqlite3', }, } + +class DisableMigrations(object): + def __contains__(self, item): + return True + + def __getitem__(self, item): + return "notmigrations" + +MIGRATION_MODULES = DisableMigrations()