Skip to content

Commit

Permalink
Issue #702 make test_persist_multiple_chunks less flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jan 7, 2025
1 parent 30c57bf commit fed61cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/extra/job_management/test_stac_job_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ def handle_row(series):
job_db_exists._upload_items_bulk(collection_id=job_db_exists.collection_id, items=items)

# 10 items in total, 3 items per chunk, should result in 4 calls
assert [c.kwargs for c in mock_requests_post.call_args_list] == [
assert sorted(
(c.kwargs for c in mock_requests_post.call_args_list),
key=lambda d: sorted(d["json"]["items"].keys()),
) == [
{
"url": f"http://fake-stac-api/collections/{job_db_exists.collection_id}/bulk_items",
"auth": None,
Expand Down

0 comments on commit fed61cc

Please sign in to comment.