mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-29 12:58:22 -04:00
Use get_prev_next_pagination_links when searching by to field
The only change in behaviour is that we are no longer including a `last` pagination link. This is OK because the frontend doesnt use it, just the prev and next links as per https://github.com/alphagov/notifications-admin/blob/master/app/main/views/jobs.py#L248
This commit is contained in:
@@ -2266,7 +2266,6 @@ def test_search_for_notification_by_to_field_returns_next_link_if_more_than_50(
|
||||
assert len(response_json['notifications']) == 50
|
||||
assert 'prev' not in response_json['links']
|
||||
assert 'page=2' in response_json['links']['next']
|
||||
assert 'page=2' in response_json['links']['last']
|
||||
|
||||
|
||||
def test_search_for_notification_by_to_field_returns_no_next_link_if_50_or_less(
|
||||
|
||||
Reference in New Issue
Block a user