Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
test: tighten image placeholder assertions
Xubin Ren58a14d18dddf
diff --git a/tests/providers/test_strip_image_content.py b/tests/providers/test_strip_image_content.pyindex ca42091db..67a3e2596 100644--- a/tests/providers/test_strip_image_content.py+++ b/tests/providers/test_strip_image_content.py@@ -41,7 +41,7 @@ class TestStripImageContent:assert "/tmp/screenshot.png" not in placeholderassert "screenshot" not in placeholder# Must clearly indicate the image was not delivered- assert "not delivered" in placeholder.lower() or "not describe" in placeholder.lower()+ assert "not delivered" in placeholder.lower()def test_returns_none_when_no_images(self):messages = [@@ -93,7 +93,7 @@ class TestStripImageContent:result = LLMProvider._strip_image_content(messages)assert result is not Noneplaceholder = result[0]["content"][0]["text"]- assert "[image" not in placeholder.lower() or "not delivered" in placeholder.lower()+ assert "not delivered" in placeholder.lower()def test_preserves_non_image_content(self):messages = [@@ -148,7 +148,7 @@ class TestStripImageContentInplace:assert len(content) == 2placeholder = content[1]["text"]assert "/tmp/photo.jpg" not in placeholder- assert "not delivered" in placeholder.lower() or "not describe" in placeholder.lower()+ assert "not delivered" in placeholder.lower()def test_returns_false_when_no_images(self):messages = [