diff --git a/app/config.py b/app/config.py index b4ac97da5..c4ab09e3c 100644 --- a/app/config.py +++ b/app/config.py @@ -84,7 +84,7 @@ class Config(object): SQLALCHEMY_POOL_TIMEOUT = 30 SQLALCHEMY_POOL_RECYCLE = 300 SQLALCHEMY_STATEMENT_TIMEOUT = 1200 - PAGE_SIZE = 50 + PAGE_SIZE = 20 API_PAGE_SIZE = 250 REDIS_URL = cloud_config.redis_url REDIS_ENABLED = getenv("REDIS_ENABLED", "1") == "1" diff --git a/tests/app/inbound_sms/test_rest.py b/tests/app/inbound_sms/test_rest.py index da1230a1b..39168762f 100644 --- a/tests/app/inbound_sms/test_rest.py +++ b/tests/app/inbound_sms/test_rest.py @@ -212,7 +212,7 @@ def test_get_inbound_sms_by_id_with_invalid_service_id_returns_404( @pytest.mark.parametrize( "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( admin_request, diff --git a/tests/app/service/test_rest.py b/tests/app/service/test_rest.py index 1979ccdfe..fec71cf82 100644 --- a/tests/app/service/test_rest.py +++ b/tests/app/service/test_rest.py @@ -2036,10 +2036,10 @@ def test_get_notifications_for_service_pagination_links( resp = admin_request.get( "service.get_all_notifications_for_service", 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"]