test(gateway): align web profile wrapper expectation

This commit is contained in:
Teknium 2026-06-14 02:10:18 -07:00
parent d76a58bd15
commit 7b9dc7cd0a

View file

@ -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