Created
March 18, 2015 17:12
-
-
Save benspaulding/2c639f1326a416e09fbf to your computer and use it in GitHub Desktop.
Skip migrations during Django 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
INSTALLED_APPS = ( | |
# ... | |
) | |
# Skip migrations for tests | |
MIGRATION_MODULES = { | |
# Assumes that all values in INSTALLED_APPS are simply a package containing | |
# an application, not an application configuration class. | |
app.split('.').pop(): '{0}.migrations_not_used_in_tests'.format(app) for app in INSTALLED_APPS | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment