mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -502,8 +502,9 @@ class ModelPaginationTests(TestCase):
|
||||
paginator = Paginator(Article.objects.order_by("id"), 5)
|
||||
p = paginator.page(1)
|
||||
|
||||
# Make sure object_list queryset is not evaluated by an invalid __getitem__ call.
|
||||
# (this happens from the template engine when using eg: {% page_obj.has_previous %})
|
||||
# object_list queryset is not evaluated by an invalid __getitem__ call.
|
||||
# (this happens from the template engine when using e.g.:
|
||||
# {% page_obj.has_previous %}).
|
||||
self.assertIsNone(p.object_list._result_cache)
|
||||
msg = "Page indices must be integers or slices, not str."
|
||||
with self.assertRaisesMessage(TypeError, msg):
|
||||
|
||||
Reference in New Issue
Block a user