Django Unit Testing taking a very long time to create test database
The final solution that fixes my problem is to force Django to disable migration during testing, which can be done from the settings like this TESTING = ‘test’ in sys.argv[1:] if TESTING: print(‘=========================’) print(‘In TEST Mode – Disableling Migrations’) print(‘=========================’) class DisableMigrations(object): def __contains__(self, item): return True def __getitem__(self, item): return None MIGRATION_MODULES = DisableMigrations() … Read more