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