From 7fafba34b4285c9b57fd65d881da53922a90bd15 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 29 Jun 2011 10:46:27 -0700 Subject: [PATCH] run_tests is depreciated. Use DjangoTestSuiteRunner --- analytical/tests/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/analytical/tests/utils.py b/analytical/tests/utils.py index ff2b09c..97aaa94 100644 --- a/analytical/tests/utils.py +++ b/analytical/tests/utils.py @@ -7,7 +7,6 @@ from django.conf import settings, UserSettingsHolder from django.core.management import call_command from django.db.models import loading from django.template import Template, Context, RequestContext -from django.test.simple import run_tests as django_run_tests from django.test.testcases import TestCase as DjangoTestCase from django.utils.functional import wraps @@ -46,12 +45,13 @@ class override_settings(object): def disable(self): settings._wrapped = self.wrapped -def run_tests(labels=()): +def run_tests(): """ Use the Django test runner to run the tests. """ - django_run_tests(labels, verbosity=1, interactive=True) - + from django.test.simple import DjangoTestSuiteRunner + runner = DjangoTestSuiteRunner(verbosity=2) + runner.run_tests(None) class TestCase(DjangoTestCase): """