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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue