test(patreon): fix _BoomSession stub for the B5 headers kwarg
CI / lint (push) Successful in 2s
CI / frontend-build (push) Successful in 24s
CI / backend-lint-and-test (push) Successful in 26s
CI / integration (push) Successful in 3m2s

test_one_failure_isolated's _BoomSession overrode get() without the headers
kwarg _fetch_to_file now passes (B5 Range resume), so the call TypeError'd and
both items errored. Add headers=None to match the base fake.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-06 11:41:48 -04:00
parent 402086c34c
commit bde19944db
+1 -1
View File
@@ -289,7 +289,7 @@ def test_video_permanent_failure_fails_fast(tmp_path, monkeypatch):
def test_one_failure_isolated(tmp_path):
class _BoomSession(_FakeSession):
def get(self, url, stream=False, timeout=None):
def get(self, url, stream=False, timeout=None, headers=None):
self.calls.append(url)
if "bad" in url:
raise RuntimeError("network boom")