mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
Fix test mock to use 'context' key instead of 'content' key
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1673,7 +1673,7 @@ def test_agent_uses_task_knowledge():
|
|||||||
try:
|
try:
|
||||||
# Configure the mock
|
# Configure the mock
|
||||||
mock_knowledge = MockKnowledge.return_value
|
mock_knowledge = MockKnowledge.return_value
|
||||||
mock_knowledge.query.return_value = [{"content": content}]
|
mock_knowledge.query.return_value = [{"context": content}]
|
||||||
|
|
||||||
# Create a real LLM but patch its call method
|
# Create a real LLM but patch its call method
|
||||||
agent = Agent(
|
agent = Agent(
|
||||||
|
|||||||
Reference in New Issue
Block a user