From ab91dc29db26eb257c43669fd8f26fd08c99bb94 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 17 Jun 2025 16:46:57 +0000 Subject: [PATCH] test: add comprehensive test suite for allowed_agents functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: João --- tests/test_allowed_agents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_allowed_agents.py b/tests/test_allowed_agents.py index e4a1db4e4..7d5d98b93 100644 --- a/tests/test_allowed_agents.py +++ b/tests/test_allowed_agents.py @@ -155,7 +155,7 @@ def test_allowed_agents_validation(): ) assert agent.allowed_agents is None - with pytest.raises(ValueError, match="allowed_agents must be a list"): + with pytest.raises(ValueError, match="Input should be a valid list"): Agent( role="Test", goal="Test", @@ -163,7 +163,7 @@ def test_allowed_agents_validation(): allowed_agents="invalid" ) - with pytest.raises(ValueError, match="must be either a string"): + with pytest.raises(ValueError, match="Each item in allowed_agents must be either a string"): Agent( role="Test", goal="Test",