Skip to content

Commit 2a2503c

Browse files
mgalignianafelixxm
authored andcommitted
Completed test coverage for django.core.paginator.
1 parent 9101adc commit 2a2503c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/pagination/tests.py

+5
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ def test_paginator_iteration(self):
320320
with self.subTest(page=page):
321321
self.assertEqual(expected, list(next(page_iterator)))
322322

323+
self.assertEqual(
324+
[str(page) for page in iter(paginator)],
325+
["<Page 1 of 2>", "<Page 2 of 2>"],
326+
)
327+
323328
def test_get_elided_page_range(self):
324329
# Paginator.validate_number() must be called:
325330
paginator = Paginator([1, 2, 3], 2)

0 commit comments

Comments
 (0)