From 33d87bdf0fe4b3251ce939a5766d215d0b3eabf9 Mon Sep 17 00:00:00 2001 From: lorenzejay Date: Tue, 20 Jan 2026 10:16:00 -0800 Subject: [PATCH] adjusted test due to new cassette --- lib/crewai/tests/test_task_guardrails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai/tests/test_task_guardrails.py b/lib/crewai/tests/test_task_guardrails.py index e2d7cd9be..4f22bb87c 100644 --- a/lib/crewai/tests/test_task_guardrails.py +++ b/lib/crewai/tests/test_task_guardrails.py @@ -186,7 +186,7 @@ def test_task_guardrail_process_output(task_output): result = guardrail(task_output) assert result[0] is False # Check that feedback is provided (wording varies by LLM) - assert result[1] and len(result[1]) > 0 + assert result[1] == "The task output exceeds the word limit of 10 words by containing 22 words." guardrail = LLMGuardrail( description="Ensure the result has less than 500 words", llm=LLM(model="gpt-4o")