mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
test: drop source-grep change-detector from #68480
The three behavior tests (control proves dup, boundary is noop, tail-only write) fully cover the flush semantics. The source-grep test reading cli.py + cli_commands_mixin.py as text and asserting a string appears is a change-detector that breaks on benign refactors without adding coverage.
This commit is contained in:
parent
1c0a57832b
commit
a46fbafe31
1 changed files with 0 additions and 13 deletions
|
|
@ -108,16 +108,3 @@ def test_rotation_flush_writes_only_new_tail(tmp_path: Path) -> None:
|
|||
"new unpersisted turn",
|
||||
]
|
||||
|
||||
|
||||
def test_call_sites_pass_conversation_history_kwarg() -> None:
|
||||
"""Source guard: the three rotation flushes named in #68454 stay fixed."""
|
||||
import pathlib
|
||||
|
||||
root = pathlib.Path(__file__).resolve().parents[2]
|
||||
cli = (root / "cli.py").read_text()
|
||||
mixin = (root / "hermes_cli" / "cli_commands_mixin.py").read_text()
|
||||
|
||||
# /new site uses conversation_history=self.conversation_history
|
||||
assert "conversation_history=self.conversation_history" in cli
|
||||
# /resume and /branch sites in the mixin
|
||||
assert mixin.count("conversation_history=self.conversation_history") >= 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue