mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 00:58:13 +00:00
fix
This commit is contained in:
@@ -1635,11 +1635,12 @@ def test_agent_with_knowledge_sources_works_with_copy():
|
|||||||
goal=agent.goal,
|
goal=agent.goal,
|
||||||
backstory=agent.backstory,
|
backstory=agent.backstory,
|
||||||
llm=agent.llm,
|
llm=agent.llm,
|
||||||
knowledge_sources=agent.knowledge_sources,
|
knowledge_sources=[string_source],
|
||||||
)
|
)
|
||||||
|
|
||||||
# Call copy method
|
# Call copy method
|
||||||
agent_copy = agent.copy()
|
agent_copy = agent.copy()
|
||||||
|
print("agent_copy.knowledge_sources", agent_copy.knowledge_sources)
|
||||||
|
|
||||||
# Verify the mock was called
|
# Verify the mock was called
|
||||||
mock_copy.assert_called_once()
|
mock_copy.assert_called_once()
|
||||||
|
|||||||
Reference in New Issue
Block a user