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.
1 parent 1159080 commit 93d3263Copy full SHA for 93d3263
tests/test_pagination.py
@@ -18,6 +18,12 @@ def test_queryset_paginator(app, todo):
18
paginator = Pagination(Todo.objects, 1, 10)
19
_test_paginator(paginator)
20
21
+ for page in range(1, 10):
22
+ for index, todo in enumerate(
23
+ Todo.objects.paginate(page=page, per_page=5).items
24
+ ):
25
+ assert todo.title == f"post: {(page-1) * 5 + index}"
26
+
27
28
def test_paginate_plain_list():
29
with pytest.raises(NotFound):
0 commit comments