Skip to content

Commit

Permalink
Update tests to match updated paging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-collier committed Jan 8, 2025
1 parent f3a69f2 commit 13dce28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/drivers/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ def test_happy_path_prefetch_urls(requests_mock):
record_selector=record_selector,
metadata=metadata,
paging={
"pages_url": "https://example.com/collection",
"pages_url": "https://example.com/collection?limit={limit}&offset={offset}",
"urls": "data.id",
"limit": 3,
"page_data": "data",
},
)

Expand Down
1 change: 1 addition & 0 deletions tests/support/schemas/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ properties:
- custom_json
- json
- iiif_json
- iiif_json_v3
- oai_xml
- sequential_csv
- xml
Expand Down
3 changes: 2 additions & 1 deletion tests/utils/test_partition_url_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ def test_prefetch_page_urls(requests_mock):
partitionBuilder = PartitionBuilder(
collection_url=collection_url,
paging_config={
"pages_url": "https://example.com/collection",
"pages_url": "https://example.com/collection?limit={limit}&offset={offset}",
"urls": "data.id",
"limit": 3,
"page_data": "data",
},
)

Expand Down

0 comments on commit 13dce28

Please sign in to comment.