Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Supports Add this as myapp/management/commands/ to your project.
from import test
from import patch_for_test_db_setup
from django.test.utils import get_runner
from django.conf import settings
TestRunner = get_runner(settings)
if hasattr(TestRunner, 'options'):
extra_options = TestRunner.options
extra_options = []
class Command(test.Command):
option_list = test.Command.option_list + tuple(extra_options)
def handle(self, *args, **kwargs):
super(Command, self).handle(*args, **kwargs)

This comment has been minimized.

Copy link
Owner Author

commented Apr 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.