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

@ -19,6 +19,8 @@ class SkippingTestCase(TestCase):
class AssertNumQueriesTests(TestCase):
urls = 'regressiontests.test_utils.urls'
def test_assert_num_queries(self):
def test_func():
raise ValueError
@ -48,6 +50,8 @@ class AssertNumQueriesTests(TestCase):
self.assertNumQueries(2, test_func)
class AssertNumQueriesContextManagerTests(TestCase):
urls = 'regressiontests.test_utils.urls'
def test_simple(self):
with self.assertNumQueries(0):
pass