From 1764008a78489444ec50bc4d474f168177fdbe95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jaworski?= Date: Thu, 30 Oct 2014 10:10:46 +0100 Subject: [PATCH] tests: late import of patch_for_test_db_setup to use only native migrations in django 1.7 tests --- userena/runtests/runtests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/userena/runtests/runtests.py b/userena/runtests/runtests.py index 2344b160..fd66e522 100755 --- a/userena/runtests/runtests.py +++ b/userena/runtests/runtests.py @@ -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 """ @@ -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'])