mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
fix: update test error message expectations to match custom validator messages
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -155,11 +155,11 @@ def test_allowed_agents_validation():
|
|||||||
)
|
)
|
||||||
assert agent.allowed_agents is None
|
assert agent.allowed_agents is None
|
||||||
|
|
||||||
with pytest.raises(ValueError, match="Input should be a valid list"):
|
with pytest.raises(ValueError, match="allowed_agents must be a list or tuple of agent roles"):
|
||||||
Agent(
|
Agent(
|
||||||
role="Test",
|
role="Test",
|
||||||
goal="Test",
|
goal="Test",
|
||||||
backstory="Test",
|
backstory="Test",
|
||||||
allowed_agents="invalid"
|
allowed_agents="invalid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user