mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-23 10:42:00 +00:00
test(file): update guard assertions for unified display-text message
The salvaged #19820 unifies the write_file guard under _is_internal_file_tool_content with the message 'internal read_file display text'. Two tests added to test_file_read_guards.py after the PR branch point still asserted the old 'status text' wording. Update them to match the new (correct, more general) message.
This commit is contained in:
parent
71274f264b
commit
16899ae144
1 changed files with 2 additions and 2 deletions
|
|
@ -275,7 +275,7 @@ class TestFileDedup(unittest.TestCase):
|
|||
))
|
||||
|
||||
self.assertIn("error", result)
|
||||
self.assertIn("internal read_file status text", result["error"])
|
||||
self.assertIn("internal read_file display text", result["error"])
|
||||
fake.write_file.assert_not_called()
|
||||
|
||||
@patch("tools.file_tools._get_file_ops")
|
||||
|
|
@ -299,7 +299,7 @@ class TestFileDedup(unittest.TestCase):
|
|||
))
|
||||
|
||||
self.assertIn("error", result)
|
||||
self.assertIn("internal read_file status text", result["error"])
|
||||
self.assertIn("internal read_file display text", result["error"])
|
||||
fake.write_file.assert_not_called()
|
||||
|
||||
@patch("tools.file_tools._get_file_ops")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue