From ee1b45f8cc7bee87fa6cee8b22cfd0a63ea1986e Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 16 Jun 2026 21:20:27 -0400 Subject: [PATCH] test(external): fix third fake_fetch stub still requiring timeout= test_downloaded_archive_gets_provenance_and_tagging's fake_fetch still had the old `*, timeout` signature; the task now calls fetch_external() without it, so the stub raised TypeError in the integration lane (run 1191). Switch it to **kwargs like the other two. Co-Authored-By: Claude Opus 4.8 --- tests/test_external_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_external_worker.py b/tests/test_external_worker.py index d54ba12..63c8bc1 100644 --- a/tests/test_external_worker.py +++ b/tests/test_external_worker.py @@ -222,7 +222,7 @@ def test_downloaded_archive_gets_provenance_and_tagging(db_sync, tmp_path, monke monkeypatch.setattr(ext, "IMAGES_ROOT", tmp_path) monkeypatch.setattr(ext, "_redis", lambda: _FakeRedis()) - def fake_fetch(host, url, dest_dir, *, timeout, should_stop=lambda: False): + def fake_fetch(host, url, dest_dir, **kwargs): dest_dir.mkdir(parents=True, exist_ok=True) zpath = dest_dir / "pack.zip" with zipfile.ZipFile(zpath, "w") as z: