From 115e78c37747abf49b4a51c63b14e35dee661008 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Mon, 29 Jun 2026 01:13:58 -0700 Subject: [PATCH] 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. --- tests/tools/test_browser_camofox_persistence.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tools/test_browser_camofox_persistence.py b/tests/tools/test_browser_camofox_persistence.py index ff5624ca031..364c4e7808e 100644 --- a/tests/tools/test_browser_camofox_persistence.py +++ b/tests/tools/test_browser_camofox_persistence.py @@ -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"}