mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(tts): accept stream kwarg in xAI TTS test mocks
Commit a1bc12f19 added stream=True to requests.post() in
_generate_xai_tts, but 4 fake_post mocks in
test_tts_xai_speech_tags.py still used the old signature without
the stream parameter, causing TypeError in CI slice 5/8.
This commit is contained in:
parent
e45f2b39e2
commit
3b703bf6b3
1 changed files with 4 additions and 4 deletions
|
|
@ -143,7 +143,7 @@ def test_generate_xai_tts_uses_oauth_pinned_base_url(tmp_path, monkeypatch):
|
|||
def raise_for_status(self):
|
||||
pass
|
||||
|
||||
def fake_post(url, headers, json, timeout):
|
||||
def fake_post(url, headers, json, timeout, stream=False):
|
||||
captured["url"] = url
|
||||
captured["headers"] = headers
|
||||
return FakeResponse()
|
||||
|
|
@ -590,7 +590,7 @@ def test_generate_xai_tts_omits_text_normalization_by_default(tmp_path, monkeypa
|
|||
fake_response.content = b"mp3"
|
||||
fake_response.raise_for_status.return_value = None
|
||||
|
||||
def fake_post(url, headers, json, timeout):
|
||||
def fake_post(url, headers, json, timeout, stream=False):
|
||||
captured["json"] = json
|
||||
return fake_response
|
||||
|
||||
|
|
@ -614,7 +614,7 @@ def test_generate_xai_tts_sends_text_normalization_when_enabled(tmp_path, monkey
|
|||
fake_response.content = b"mp3"
|
||||
fake_response.raise_for_status.return_value = None
|
||||
|
||||
def fake_post(url, headers, json, timeout):
|
||||
def fake_post(url, headers, json, timeout, stream=False):
|
||||
captured["json"] = json
|
||||
return fake_response
|
||||
|
||||
|
|
@ -640,7 +640,7 @@ def test_generate_xai_tts_omits_text_normalization_when_explicit_false(
|
|||
fake_response.content = b"mp3"
|
||||
fake_response.raise_for_status.return_value = None
|
||||
|
||||
def fake_post(url, headers, json, timeout):
|
||||
def fake_post(url, headers, json, timeout, stream=False):
|
||||
captured["json"] = json
|
||||
return fake_response
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue