Modified some regression tests to make them independent of the default root urlconf.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-04-02 13:27:17 +00:00
parent bcdbafc88a
commit 3b94af8a84
11 changed files with 38 additions and 41 deletions

View file

@ -94,6 +94,8 @@ class BadExceptionMiddleware(TestMiddleware):
class BaseMiddlewareExceptionTest(TestCase):
urls = 'regressiontests.middleware_exceptions.urls'
def setUp(self):
self.exceptions = []
got_request_exception.connect(self._on_request_exception)
@ -768,6 +770,8 @@ class BadMiddlewareTests(BaseMiddlewareExceptionTest):
_missing = object()
class RootUrlconfTests(TestCase):
urls = 'regressiontests.middleware_exceptions.urls'
def test_missing_root_urlconf(self):
try:
original_ROOT_URLCONF = settings.ROOT_URLCONF