mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-06 06:38:29 +00:00
Adding ability to track tools_errors and delegations
This commit is contained in:
@@ -593,7 +593,7 @@ def test_agent_count_formatting_error():
|
||||
parser = CrewAgentParser()
|
||||
parser.agent = agent1
|
||||
|
||||
with patch.object(Agent, "count_formatting_errors") as mock_count_errors:
|
||||
with patch.object(Agent, "increment_formatting_errors") as mock_count_errors:
|
||||
test_text = "This text does not match expected formats."
|
||||
with pytest.raises(OutputParserException):
|
||||
parser.parse(test_text)
|
||||
|
||||
Reference in New Issue
Block a user