From 2a2503c2c1b42fbeb19a7918c4ec06cb420e0000 Mon Sep 17 00:00:00 2001 From: Marcelo Galigniana Date: Wed, 12 Oct 2022 00:54:57 -0300 Subject: [PATCH] Completed test coverage for django.core.paginator. --- tests/pagination/tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index 8444bd3dd0..a04b6dfe8a 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -320,6 +320,11 @@ class PaginationTests(SimpleTestCase): with self.subTest(page=page): self.assertEqual(expected, list(next(page_iterator))) + self.assertEqual( + [str(page) for page in iter(paginator)], + ["", ""], + ) + def test_get_elided_page_range(self): # Paginator.validate_number() must be called: paginator = Paginator([1, 2, 3], 2)