We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_persist_multiple_chunks
1 parent 30c57bf commit fed61ccCopy full SHA for fed61cc
tests/extra/job_management/test_stac_job_db.py
@@ -363,7 +363,10 @@ def handle_row(series):
363
job_db_exists._upload_items_bulk(collection_id=job_db_exists.collection_id, items=items)
364
365
# 10 items in total, 3 items per chunk, should result in 4 calls
366
- assert [c.kwargs for c in mock_requests_post.call_args_list] == [
+ assert sorted(
367
+ (c.kwargs for c in mock_requests_post.call_args_list),
368
+ key=lambda d: sorted(d["json"]["items"].keys()),
369
+ ) == [
370
{
371
"url": f"http://fake-stac-api/collections/{job_db_exists.collection_id}/bulk_items",
372
"auth": None,
0 commit comments