test: stub ctx gains the auth_token key run_download now reads
CI / lint (push) Successful in 2s
CI / frontend-build (push) Successful in 18s
CI / backend-lint-and-test (push) Successful in 37s
CI / integration (push) Successful in 3m43s

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CDgx8bQS5YrGRK76v8HUnM
This commit is contained in:
2026-07-03 10:00:14 -04:00
parent 0bbcdee3bd
commit a7f715ec43
+2 -2
View File
@@ -322,7 +322,7 @@ async def test_run_download_native_resolves_vanity_and_runs(
ctx = { ctx = {
"platform": "patreon", "platform": "patreon",
"source_id": source.id, "url": "https://patreon.com/alice", "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": {}, "config_overrides": {},
} }
result, resolved = await db_mod.run_download( result, resolved = await db_mod.run_download(
@@ -355,7 +355,7 @@ async def test_run_download_native_unresolvable_fails_loud(
ctx = { ctx = {
"platform": "patreon", "platform": "patreon",
"source_id": source.id, "url": "https://patreon.com/alice", "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": {}, "config_overrides": {},
} }
result, resolved = await db_mod.run_download( result, resolved = await db_mod.run_download(