From 055711ca3a23220605fdd31842b120c8ce7b29eb Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 19 Aug 2026 03:36:33 -0700 Subject: [PATCH] Check public add results on the public index --- archivebox/tests/test_ui_add_view_runtime.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivebox/tests/test_ui_add_view_runtime.py b/archivebox/tests/test_ui_add_view_runtime.py index 00840499..84c86120 100644 --- a/archivebox/tests/test_ui_add_view_runtime.py +++ b/archivebox/tests/test_ui_add_view_runtime.py @@ -482,7 +482,7 @@ def test_public_add_view_import_text_formats_preserve_metadata_and_resume_withou start_archivebox_server(tmp_path, env=env, port=port) public_index = requests.get( - f"http://127.0.0.1:{port}/", + f"http://127.0.0.1:{port}/public/", headers={"Host": f"web.archivebox.localhost:{port}"}, timeout=10, ) @@ -572,7 +572,7 @@ def test_public_add_view_rejects_file_path_and_shell_injection_payloads(tmp_path start_archivebox_server(tmp_path, env=env, port=port) public_index = requests.get( - f"http://127.0.0.1:{port}/", + f"http://127.0.0.1:{port}/public/", headers={"Host": f"web.archivebox.localhost:{port}"}, timeout=10, ) @@ -771,7 +771,7 @@ def test_add_view_depth_two_crawl_renders_outputs_over_server(tmp_path, recursiv assert "active_crawls" in progress.json() index_page = requests.get( - f"http://web.archivebox.localhost:{port}/", + f"http://web.archivebox.localhost:{port}/public/", timeout=10, ) assert index_page.status_code == 200