mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
test: tolerate queued api archive results
This commit is contained in:
parent
2dadc434b2
commit
f3af8a1a17
@ -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}",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user