Files
hermes-agent/tests
Laura f84f1dd132 fix(tests): return Path from get_hermes_home mock in slash_worker profile test
test_slash_worker_accepts_profile_home mocks hermes_constants with
get_hermes_home=MagicMock(return_value="/tmp/hermes_test"), a str. In
production get_hermes_home() returns a Path, and hermes_state.py's
module-level DEFAULT_DB_PATH = get_hermes_home() / "state.db" does path
division. Under the str mock that becomes str / str, so importing
tui_gateway.server inside the patch raises TypeError and the test fails on
every main run (slice 4). Wrap the mock return in Path(...) so it matches the
real return type. Test-only; no production code change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-14 16:53:40 +05:30
..