Added the generic type to the pagination utility in the PaginationTestCase test case.
This commit is contained in:
parent
3d9e6c10da
commit
b9cecf343a
@ -154,10 +154,10 @@ class PaginationTestCase(unittest.TestCase):
|
|||||||
"""The test view with the pagination."""
|
"""The test view with the pagination."""
|
||||||
pagination: Pagination
|
pagination: Pagination
|
||||||
if self.params.is_reversed is not None:
|
if self.params.is_reversed is not None:
|
||||||
pagination = Pagination(self.params.items,
|
pagination = Pagination[int](
|
||||||
is_reversed=self.params.is_reversed)
|
self.params.items, is_reversed=self.params.is_reversed)
|
||||||
else:
|
else:
|
||||||
pagination = Pagination(self.params.items)
|
pagination = Pagination[int](self.params.items)
|
||||||
self.assertEqual(pagination.is_paged, self.params.is_paged)
|
self.assertEqual(pagination.is_paged, self.params.is_paged)
|
||||||
self.assertEqual(pagination.list, self.params.result)
|
self.assertEqual(pagination.list, self.params.result)
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
Reference in New Issue
Block a user