Skip to content

Instantly share code, notes, and snippets.

@chrisjones-brack3t
Created October 2, 2015 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisjones-brack3t/7cde77796fc757bb74aa to your computer and use it in GitHub Desktop.
Save chrisjones-brack3t/7cde77796fc757bb74aa to your computer and use it in GitHub Desktop.
Disable migrations during tests
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