mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-02 02:01:47 +00:00
fix(ci): stabilize main test suite regressions (#17660)
* fix: stabilize main test suite regressions * test(agent): update MiniMax normalization expectation * test: stabilize remaining CI assertions * test: harden config helper monkeypatching * test: harden CI-only assertions * fix(agent): propagate fast streaming interrupts
This commit is contained in:
parent
e7beaaf184
commit
f73364b1c4
37 changed files with 450 additions and 127 deletions
|
|
@ -997,10 +997,13 @@ class TestHermesHomeIsolation:
|
|||
assert "hermes_test" in hermes_home, "Should point to test temp dir"
|
||||
|
||||
def test_get_hermes_home_fallback(self):
|
||||
"""Without HERMES_HOME set, falls back to ~/.hermes."""
|
||||
"""Without HERMES_HOME set, falls back to the active OS home."""
|
||||
from tools.tirith_security import _get_hermes_home
|
||||
with patch.dict(os.environ, {}, clear=True):
|
||||
# Remove HERMES_HOME entirely
|
||||
# Remove HERMES_HOME entirely. With HOME also absent, expanduser
|
||||
# falls back to the account database; compute expected under the
|
||||
# same environment instead of after patch.dict restores HOME.
|
||||
os.environ.pop("HERMES_HOME", None)
|
||||
expected = os.path.join(os.path.expanduser("~"), ".hermes")
|
||||
result = _get_hermes_home()
|
||||
assert result == os.path.join(os.path.expanduser("~"), ".hermes")
|
||||
assert result == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue