Adapted test case for paginated response schema

This commit is contained in:
Norbert Schuler 2022-10-11 09:30:43 +02:00
parent 25e09ba14b
commit edc75e91b0

View File

@ -922,10 +922,14 @@ class CursorPaginationTestsMixin:
'next': { 'next': {
'type': 'string', 'type': 'string',
'nullable': True, 'nullable': True,
'format': 'uri',
'example': 'http://api.example.org/accounts/?cursor=cD00ODY%3D"'
}, },
'previous': { 'previous': {
'type': 'string', 'type': 'string',
'nullable': True, 'nullable': True,
'format': 'uri',
'example': 'http://api.example.org/accounts/?cursor=cj0xJnA9NDg3'
}, },
'results': unpaginated_schema, 'results': unpaginated_schema,
}, },