mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Fix two more depth assertions missed in earlier alignment
This commit is contained in:
parent
824af25371
commit
8ba658b4dc
@ -1091,7 +1091,7 @@ def test_cli_add_real_urls_with_options_writes_inspectable_outputs(initialized_a
|
||||
processes = list(Process.objects.filter(process_type="hook").values_list("process_type", "status", "exit_code", "pwd", "cmd"))
|
||||
|
||||
assert real_flow_crawl is not None
|
||||
assert real_flow_crawl[0] == 1
|
||||
assert real_flow_crawl[0] == 0
|
||||
assert real_flow_crawl[1] == "real-flow,challenge"
|
||||
real_flow_config = real_flow_crawl[2] or {}
|
||||
assert real_flow_config["CRAWL_MAX_URLS"] == 2
|
||||
|
||||
@ -369,9 +369,9 @@ def test_recursive_crawl_depth_two_writes_real_outputs_and_process_records(tmp_p
|
||||
)
|
||||
|
||||
assert crawl is not None
|
||||
assert crawl[1] == 3
|
||||
assert crawl[1] == 2
|
||||
assert root_snapshot is not None
|
||||
assert root_snapshot[2] == 1
|
||||
assert root_snapshot[2] == 0
|
||||
assert root_snapshot[3] is None
|
||||
assert depth_counts.get(0, 0) >= 1
|
||||
assert depth_counts.get(1, 0) >= len(recursive_test_site["child_urls"])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user