Created
June 17, 2016 13:51
-
-
Save dwickstrom/94671565f4458fa9867139d65ccf2bd0 to your computer and use it in GitHub Desktop.
no_db_testrunner.py
This file contains hidden or 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
from django.test.runner import DiscoverRunner | |
class NoDbTestRunner(DiscoverRunner): | |
""" A test runner to test without database creation """ | |
def setup_databases(self, **kwargs): | |
""" Override the database creation defined in parent class """ | |
pass | |
def teardown_databases(self, old_config, **kwargs): | |
""" Override the database teardown defined in parent class """ | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment