mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-21 07:55:08 +00:00
test(tui): accept repair_alternation in the top-level server test doubles too
The widened resume sites pass repair_alternation=True; the DB doubles in tests/test_tui_gateway_server.py (separate from tests/tui_gateway/) needed the same signature update as Frowtek's originals.
This commit is contained in:
parent
95cc3f7eb2
commit
c49ed09336
1 changed files with 4 additions and 4 deletions
|
|
@ -1392,7 +1392,7 @@ def test_session_resume_uses_parent_lineage_for_display(monkeypatch):
|
|||
def reopen_session(self, target):
|
||||
captured["reopened"] = target
|
||||
|
||||
def get_messages_as_conversation(self, target, include_ancestors=False):
|
||||
def get_messages_as_conversation(self, target, include_ancestors=False, repair_alternation=False):
|
||||
captured.setdefault("history_calls", []).append((target, include_ancestors))
|
||||
return (
|
||||
[
|
||||
|
|
@ -1528,7 +1528,7 @@ def test_session_resume_passes_stored_runtime_to_agent(monkeypatch):
|
|||
def reopen_session(self, target):
|
||||
pass
|
||||
|
||||
def get_messages_as_conversation(self, target, include_ancestors=False):
|
||||
def get_messages_as_conversation(self, target, include_ancestors=False, repair_alternation=False):
|
||||
return [{"role": "user", "content": "hello"}]
|
||||
|
||||
def fake_make_agent(sid, key, session_id=None, session_db=None, **kwargs):
|
||||
|
|
@ -1588,7 +1588,7 @@ def test_session_resume_profile_uses_profile_db_cwd(monkeypatch, tmp_path):
|
|||
def reopen_session(self, _target):
|
||||
captured["reopened"] = _target
|
||||
|
||||
def get_messages_as_conversation(self, _target, include_ancestors=False):
|
||||
def get_messages_as_conversation(self, _target, include_ancestors=False, repair_alternation=False):
|
||||
return [{"role": "user", "content": "hello"}]
|
||||
|
||||
def update_session_cwd(self, *_args):
|
||||
|
|
@ -5262,7 +5262,7 @@ def test_slash_exec_r7_read_commands_use_metadata_mirror_flag_on(monkeypatch):
|
|||
"pinned": True,
|
||||
}
|
||||
|
||||
def get_messages_as_conversation(self, key, include_ancestors=True):
|
||||
def get_messages_as_conversation(self, key, include_ancestors=True, repair_alternation=False):
|
||||
assert key == "session-key"
|
||||
assert include_ancestors is True
|
||||
return list(history_from_db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue