mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user