From 87dbff486d653af19c91614583306a2ce8424e4a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 13 Jun 2026 20:43:39 -0700 Subject: [PATCH] Update direct URL snapshot depth assertion to depth=0 --- archivebox/tests/test_cli_add.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/tests/test_cli_add.py b/archivebox/tests/test_cli_add.py index 9b998ea7..7c83d898 100644 --- a/archivebox/tests/test_cli_add.py +++ b/archivebox/tests/test_cli_add.py @@ -1104,7 +1104,7 @@ def test_cli_add_real_urls_with_options_writes_inspectable_outputs(initialized_a snapshot_urls = {url for _id, url, _depth, _status, _title in snapshots} assert snapshot_urls >= {*wget_urls, chrome_url} - assert all(depth == (0 if url == Snapshot.INTERNAL_INPUT_URL else 1) for _id, url, depth, _status, _title in snapshots) + assert all(depth == 0 for _id, url, depth, _status, _title in snapshots) by_url_plugin = {(url, plugin): status for url, plugin, status, _files, _size, _output in archive_results} assert by_url_plugin[("https://example.com", "wget")] == "succeeded"