I have django application 2.1.7 with django-tenant plugin (creating schemas in the database for saas).
My problem is unit testing. I run the command:
python manage.py test --settings=project.settings_test
and I'm getting a error: ImportError: No module named 'notmigrations'
My code in settings_test file
from .settings_base import *
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return 'notmigrations'
MIGRATION_MODULES = DisableMigrations()