added a test case, updated coverage file

This commit is contained in:
abutalib-kiwi
2023-09-12 23:08:17 +05:30
parent af06dddbeb
commit 08f54f28a4
8 changed files with 253 additions and 255 deletions

View File

@ -32,15 +32,3 @@ class CustomPageNumberPagination(PageNumberPagination):
]))
def get_paginated_dict_response(self, data):
"""
:param data: queryset to be paginated
:return: return a simple dict obj
"""
return {
'count': self.page.paginator.count,
'data': data,
'current_page': self.page.number,
'total_pages': self.page.paginator.num_pages,
}