From a7f715ec433f9fc6551e9c7bc0b86d2b60295344 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 3 Jul 2026 10:00:14 -0400 Subject: [PATCH] test: stub ctx gains the auth_token key run_download now reads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The real phase-1 ctx has always carried auth_token; the native branch now threads it into the adapter constructors, so the stub ctx must match the contract (kept the strict ctx[...] read — it catches exactly this drift). Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01CDgx8bQS5YrGRK76v8HUnM --- tests/test_download_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_download_service.py b/tests/test_download_service.py index 67d00b2..2866531 100644 --- a/tests/test_download_service.py +++ b/tests/test_download_service.py @@ -322,7 +322,7 @@ async def test_run_download_native_resolves_vanity_and_runs( ctx = { "platform": "patreon", "source_id": source.id, "url": "https://patreon.com/alice", - "artist_slug": "alice", "cookies_path": None, + "artist_slug": "alice", "cookies_path": None, "auth_token": None, "config_overrides": {}, } result, resolved = await db_mod.run_download( @@ -355,7 +355,7 @@ async def test_run_download_native_unresolvable_fails_loud( ctx = { "platform": "patreon", "source_id": source.id, "url": "https://patreon.com/alice", - "artist_slug": "alice", "cookies_path": None, + "artist_slug": "alice", "cookies_path": None, "auth_token": None, "config_overrides": {}, } result, resolved = await db_mod.run_download(