Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

test(rag): keep source captions in tool data

Bingxi Zhao (Frank)329d27550852
diff --git a/tests/services/rag/test_visual_assets.py b/tests/services/rag/test_visual_assets.py
index 1e85e4831..e810f18c4 100644
--- a/tests/services/rag/test_visual_assets.py
+++ b/tests/services/rag/test_visual_assets.py
@@ -281,6 +281,7 @@ def test_rag_tool_sends_exact_retrieved_pixels_to_vision_model(tmp_path: Path, m
parts = result.model_message["content"]
assert parts[0]["type"] == "text"
assert record.record["asset_id"] in parts[0]["text"]
+ assert "Learning curve" not in parts[0]["text"]
assert parts[1]["type"] == "image_url"
data_uri = parts[1]["image_url"]["url"]
assert data_uri.startswith("data:image/png;base64,")