mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
fixed page_size testing
This commit is contained in:
@@ -54,7 +54,7 @@ def dao_get_jobs_by_service_id(
|
|||||||
*,
|
*,
|
||||||
limit_days=None,
|
limit_days=None,
|
||||||
page=1,
|
page=1,
|
||||||
page_size=20,
|
page_size=50,
|
||||||
statuses=None,
|
statuses=None,
|
||||||
):
|
):
|
||||||
query_filter = [
|
query_filter = [
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ def test_get_inbound_sms_by_id_with_invalid_service_id_returns_404(
|
|||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"page_given, expected_rows, has_next_link",
|
"page_given, expected_rows, has_next_link",
|
||||||
[(True, 10, False), (False, 50, True)],
|
[(True, 20, True), (False, 20, True)],
|
||||||
)
|
)
|
||||||
def test_get_most_recent_inbound_sms_for_service(
|
def test_get_most_recent_inbound_sms_for_service(
|
||||||
admin_request,
|
admin_request,
|
||||||
|
|||||||
@@ -2036,10 +2036,10 @@ def test_get_notifications_for_service_pagination_links(
|
|||||||
resp = admin_request.get(
|
resp = admin_request.get(
|
||||||
"service.get_all_notifications_for_service",
|
"service.get_all_notifications_for_service",
|
||||||
service_id=sample_template.service_id,
|
service_id=sample_template.service_id,
|
||||||
page=3,
|
page=6,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert "?page=2" in resp["links"]["prev"]
|
assert "?page=5" in resp["links"]["prev"]
|
||||||
assert "next" not in resp["links"]
|
assert "next" not in resp["links"]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user