mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-01 12:02:05 +00:00
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:
parent
41095fdb04
commit
115e78c377
1 changed files with 2 additions and 2 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue