We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3001b56 + d610d15 commit f9a0db3Copy full SHA for f9a0db3
1 file changed
tests/test_pagination.py
@@ -370,6 +370,13 @@ def test_no_offset(self):
370
assert self.pagination.display_page_controls
371
assert isinstance(self.pagination.to_html(), type(''))
372
373
+ def test_pagination_not_applied_if_limit_or_default_limit_not_set(self):
374
+ class MockPagination(pagination.LimitOffsetPagination):
375
+ default_limit = None
376
+ request = Request(factory.get('/'))
377
+ queryset = MockPagination().paginate_queryset(self.queryset, request)
378
+ assert queryset is None
379
+
380
def test_single_offset(self):
381
"""
382
When the offset is not a multiple of the limit we get some edge cases:
0 commit comments