mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-15 09:21:36 +00:00
test(gateway): align web profile wrapper expectation
This commit is contained in:
parent
d76a58bd15
commit
7b9dc7cd0a
1 changed files with 2 additions and 1 deletions
|
|
@ -2630,6 +2630,7 @@ class TestNewEndpoints:
|
|||
wrapper_dir = tmp_path / "bin"
|
||||
wrapper_dir.mkdir()
|
||||
monkeypatch.setattr(profiles_mod, "_get_wrapper_dir", lambda: wrapper_dir)
|
||||
monkeypatch.setattr(profiles_mod.shutil, "which", lambda name: "/opt/hermes/bin/hermes")
|
||||
|
||||
resp = self.client.post(
|
||||
"/api/profiles",
|
||||
|
|
@ -2639,7 +2640,7 @@ class TestNewEndpoints:
|
|||
assert resp.status_code == 200
|
||||
wrapper_path = wrapper_dir / "writer"
|
||||
assert wrapper_path.exists()
|
||||
assert wrapper_path.read_text() == '#!/bin/sh\nexec hermes -p writer "$@"\n'
|
||||
assert wrapper_path.read_text() == '#!/bin/sh\nexec /opt/hermes/bin/hermes -p writer "$@"\n'
|
||||
|
||||
def test_profiles_create_with_clone_from_copies_source_skills(self, monkeypatch):
|
||||
from hermes_constants import get_hermes_home
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue