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:
teknium1 2026-06-21 11:36:51 -07:00 committed by Teknium
parent 71274f264b
commit 16899ae144

View file

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