mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-14 18:48:29 +00:00
test: fix evaluation tests and update cassettes
This commit is contained in:
@@ -227,8 +227,8 @@ class TestAgentEvaluator:
|
||||
(goal_alignment,) = result.metrics.values()
|
||||
assert goal_alignment.score == 5.0
|
||||
|
||||
expected_feedback = "The agent provided a thorough guide on how to conduct a test task but failed to produce specific expected output"
|
||||
assert expected_feedback in goal_alignment.feedback
|
||||
# Check that feedback mentions missing requirements or partial alignment
|
||||
assert "missed key requirements" in goal_alignment.feedback or "partial" in goal_alignment.feedback.lower()
|
||||
|
||||
assert goal_alignment.raw_response is not None
|
||||
assert '"score": 5' in goal_alignment.raw_response
|
||||
|
||||
Reference in New Issue
Block a user