mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 03:17:38 -02:30
Allow taking the ordering parameter in the unit tests for the decorator
This commit is contained in:
@@ -24,7 +24,7 @@ class PaginatedDecoratorTests(TestCase):
|
|||||||
class View(APIView):
|
class View(APIView):
|
||||||
permission_classes = (AllowAny,)
|
permission_classes = (AllowAny,)
|
||||||
@paginated
|
@paginated
|
||||||
def get(self, request, limit, offset):
|
def get(self, request, limit, ordering, offset):
|
||||||
return ['a', 'b', 'c', 'd', 'e'], 26
|
return ['a', 'b', 'c', 'd', 'e'], 26
|
||||||
self.view = View.as_view()
|
self.view = View.as_view()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user