mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Added page_links check to limit=0 pagination test
This commit is contained in:
parent
0429201ddb
commit
145e240969
|
@ -495,6 +495,9 @@ class TestLimitOffset:
|
|||
next_url = 'http://testserver/?limit={0}&offset={1}'.format(next_limit, next_offset)
|
||||
assert queryset == []
|
||||
assert content.get('next') == next_url
|
||||
assert context.get('page_links')[0] == \
|
||||
PageLink('http://testserver/?limit={0}'.format(next_limit), 1, True, False)
|
||||
|
||||
|
||||
|
||||
class TestCursorPagination:
|
||||
|
|
Loading…
Reference in New Issue
Block a user