mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
handling n to summarize prompt
This commit is contained in:
@@ -1084,7 +1084,7 @@ def test_handle_context_length_exceeds_limit_cli_no():
|
||||
private_mock.assert_called_once()
|
||||
with patch("crewai.agents.executor.prompt") as mock_prompt:
|
||||
mock_prompt.return_value = "n"
|
||||
|
||||
pytest.raises(SystemExit)
|
||||
with patch.object(
|
||||
CrewAgentExecutor, "_handle_context_length"
|
||||
) as mock_handle_context:
|
||||
|
||||
Reference in New Issue
Block a user