mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
remove relaunch_chat
not needed
This commit is contained in:
parent
3c673468b4
commit
7d48a16f14
3 changed files with 4 additions and 30 deletions
|
|
@ -152,21 +152,4 @@ class TestRelaunch:
|
|||
with pytest.raises(SystemExit):
|
||||
relaunch_mod.relaunch(["--resume", "abc"])
|
||||
|
||||
assert calls == [("/usr/bin/hermes", ["/usr/bin/hermes", "--resume", "abc"])]
|
||||
|
||||
|
||||
class TestRelaunchChat:
|
||||
def test_appends_chat(self, monkeypatch):
|
||||
calls = []
|
||||
|
||||
def fake_execvp(path, argv):
|
||||
calls.append((path, argv))
|
||||
raise SystemExit(0)
|
||||
|
||||
monkeypatch.setattr(relaunch_mod.os, "execvp", fake_execvp)
|
||||
monkeypatch.setattr(relaunch_mod, "resolve_hermes_bin", lambda: "/usr/bin/hermes")
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
relaunch_mod.relaunch_chat()
|
||||
|
||||
assert calls == [("/usr/bin/hermes", ["/usr/bin/hermes", "chat"])]
|
||||
assert calls == [("/usr/bin/hermes", ["/usr/bin/hermes", "--resume", "abc"])]
|
||||
Loading…
Add table
Add a link
Reference in a new issue