Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
tests: late import of patch_for_test_db_setup to use only native migr…
Browse files Browse the repository at this point in the history
…ations in django 1.7 tests
  • Loading branch information
Michał Jaworski committed Oct 30, 2014
1 parent dfc8216 commit 1764008
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions userena/runtests/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
from django.db.models import get_app
from django.test.utils import get_runner

from south.management.commands import patch_for_test_db_setup


def usage():
return """
Expand Down Expand Up @@ -55,6 +53,7 @@ def main():
# starting from 1.7.0 built in django migrations are run
# for older releases this patch is required to enable testing with
# migrations
from south.management.commands import patch_for_test_db_setup
patch_for_test_db_setup()

failures = test_runner.run_tests(test_modules or ['userena'])
Expand Down

0 comments on commit 1764008

Please sign in to comment.