test(camofox): accept headers= kwarg in persistence test mocks

The auth-header fix adds headers=_auth_headers() to all Camofox HTTP
calls. Two _capture_post mocks in the persistence test lacked a headers
parameter, so navigate raised TypeError and the success assertions
failed. Add headers=None to both mock signatures.
This commit is contained in:
teknium1 2026-06-29 01:13:58 -07:00 committed by Teknium
parent 41095fdb04
commit 115e78c377

View file

@ -151,7 +151,7 @@ class TestManagedPersistenceMode:
requests_seen = []
def _capture_post(url, json=None, timeout=None):
def _capture_post(url, json=None, timeout=None, headers=None):
requests_seen.append(json)
return _mock_response(
json_data={"tabId": "tab-1", "url": "https://example.com"}
@ -171,7 +171,7 @@ class TestManagedPersistenceMode:
requests_seen = []
def _capture_post(url, json=None, timeout=None):
def _capture_post(url, json=None, timeout=None, headers=None):
requests_seen.append(json)
return _mock_response(
json_data={"tabId": f"tab-{len(requests_seen)}", "url": "https://example.com"}