From c19b8de5d65fed2ec76fe9f9e4fcace062c9c28b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 13 Jun 2026 21:05:17 -0700 Subject: [PATCH] Update test_cli_recursive_crawl depth assertions to depth=0 input convention --- archivebox/tests/test_cli_add.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebox/tests/test_cli_add.py b/archivebox/tests/test_cli_add.py index 7c83d898..3ba9f410 100644 --- a/archivebox/tests/test_cli_add.py +++ b/archivebox/tests/test_cli_add.py @@ -1194,14 +1194,14 @@ def test_cli_recursive_crawl_processes_discovered_html_urls(initialized_archive, .values_list("snapshot__url", "plugin", "status", "output_files"), ) - assert crawl[0] == 3 + assert crawl[0] == 2 assert crawl[1] == "recursive-flow" crawl_config = crawl[2] or {} assert crawl_config["CRAWL_MAX_URLS"] == 2 assert crawl_config["CRAWL_MAX_SIZE"] == 50 * 1024 * 1024 assert crawl_config.get("SNAPSHOT_MAX_SIZE", 0) == 0 - assert (root_url, 1, "sealed") in snapshots - assert any(url == child_url and depth == 2 and status == "sealed" for url, depth, status in snapshots) + assert (root_url, 0, "sealed") in snapshots + assert any(url == child_url and depth == 1 and status == "sealed" for url, depth, status in snapshots) by_url_plugin = {(url, plugin): status for url, plugin, status, _files in archive_results} assert by_url_plugin[(root_url, "wget")] == "succeeded"