test: tolerate queued api archive results

This commit is contained in:
Nick Sweeting 2026-06-02 14:35:23 -07:00
parent 2dadc434b2
commit f3af8a1a17
No known key found for this signature in database

View File

@ -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}",