Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fix-live-test-user-policy-page-limit.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The live staging test lists a browser's saved policies within the Public API's page limit, so the staging deploy's integration step can pass.
4 changes: 3 additions & 1 deletion tests/integration/test_live_v2_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import httpx
import pytest

from policyengine_api.query_parameters import MAXIMUM_QUERY_LIMIT

AUTH0_ENVIRONMENT = (
"STAGING_AUTH0_TEST_DOMAIN",
"STAGING_AUTH0_TEST_AUDIENCE",
Expand Down Expand Up @@ -170,7 +172,7 @@ def _save_policy(api_client, headers: dict[str, str], legacy_policy_id: int) ->
def _policy_ids(api_client, headers: dict[str, str]) -> set[str]:
response = api_client.get(
"/v2/user-policies",
params={"country_id": COUNTRY_ID, "limit": 1000},
params={"country_id": COUNTRY_ID, "limit": MAXIMUM_QUERY_LIMIT},
headers=headers,
)
assert response.status_code == 200, response.text[:500]
Expand Down
Loading