From f3af8a1a173dbf073501e0ca191f8a32c13ab073 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 2 Jun 2026 14:35:23 -0700 Subject: [PATCH] test: tolerate queued api archive results --- .../test_api_v1_workflow_core_token_auth_side_effects.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/archivebox/tests/test_api_v1_workflow_core_token_auth_side_effects.py b/archivebox/tests/test_api_v1_workflow_core_token_auth_side_effects.py index 563738a8..a63c5aea 100644 --- a/archivebox/tests/test_api_v1_workflow_core_token_auth_side_effects.py +++ b/archivebox/tests/test_api_v1_workflow_core_token_auth_side_effects.py @@ -178,7 +178,9 @@ def test_core_api_workflow_uses_token_auth_and_persists_side_effects_over_server snapshot_items = snapshots_list.json()["items"] assert len(snapshot_items) == 1 assert snapshot_items[0]["id"] == snapshot_id - assert snapshot_items[0]["archiveresults"] == [] + archiveresults = snapshot_items[0]["archiveresults"] + assert {result["plugin"] for result in archiveresults}.issubset({"wget", "parse_html_urls"}) + assert {result["status"] for result in archiveresults}.issubset({"queued"}) bearer_response = requests.get( f"http://127.0.0.1:{port}/api/v1/crawls/crawl/{crawl_id}",