mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #26022 -- Used context manager version of assertRaises in tests.
This commit is contained in:
parent
575706331b
commit
3d0dcd7f5a
118 changed files with 1086 additions and 760 deletions
|
@ -204,7 +204,8 @@ class ListViewTests(TestCase):
|
|||
self.assertTemplateUsed(res, 'generic_views/author_list.html')
|
||||
|
||||
def test_missing_items(self):
|
||||
self.assertRaises(ImproperlyConfigured, self.client.get, '/list/authors/invalid/')
|
||||
with self.assertRaises(ImproperlyConfigured):
|
||||
self.client.get('/list/authors/invalid/')
|
||||
|
||||
def test_paginated_list_view_does_not_load_entire_table(self):
|
||||
# Regression test for #17535
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue