mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
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:
parent
bcdbafc88a
commit
3b94af8a84
11 changed files with 38 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue