Created
October 2, 2015 18:21
-
-
Save chrisjones-brack3t/7cde77796fc757bb74aa to your computer and use it in GitHub Desktop.
Disable migrations during tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DisableMigrations(object): | |
def __contains__(self, item): | |
return True | |
def __getitem__(self, item): | |
return 'notmigrations' | |
# ENABLE THIS TO SPEED UP TESTS | |
MIGRATION_MODULES = DisableMigrations() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment