Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Supports http://south.aeracode.org/ticket/958. Add this as myapp/management/commands/overloaded_test.py to your project.
from django.core.management.commands import test
from south.management.commands 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
else:
extra_options = []
class Command(test.Command):
option_list = test.Command.option_list + tuple(extra_options)
def handle(self, *args, **kwargs):
patch_for_test_db_setup()
super(Command, self).handle(*args, **kwargs)
@ErikEvenson

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.