mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
add in more role tests
This commit is contained in:
@@ -16,15 +16,15 @@ class InternalAgentTool(BaseAgentTool):
|
|||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"role_name,should_match",
|
"role_name,should_match",
|
||||||
[
|
[
|
||||||
# ("Futel Official Infopoint", True), # exact match
|
("Futel Official Infopoint", True), # exact match
|
||||||
# (' "Futel Official Infopoint" ', True), # extra quotes and spaces
|
# (' "Futel Official Infopoint" ', True), # extra quotes and spaces
|
||||||
# ("Futel Official Infopoint\n", True), # trailing newline
|
# ("Futel Official Infopoint\n", True), # trailing newline
|
||||||
# ('"Futel Official Infopoint"', True), # embedded quotes
|
# ('"Futel Official Infopoint"', True), # embedded quotes
|
||||||
# (" FUTEL\nOFFICIAL INFOPOINT ", True), # multiple whitespace and newline
|
# (" FUTEL\nOFFICIAL INFOPOINT ", True), # multiple whitespace and newline
|
||||||
# ("futel official infopoint", True), # lowercase
|
("futel official infopoint", True), # lowercase
|
||||||
# ("FUTEL OFFICIAL INFOPOINT", True), # uppercase
|
("FUTEL OFFICIAL INFOPOINT", True), # uppercase
|
||||||
("Non Existent Agent", False), # non-existent agent
|
("Non Existent Agent", False), # non-existent agent
|
||||||
# (None, False), # None agent name
|
(None, False), # None agent name
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_agent_tool_role_matching(role_name, should_match):
|
def test_agent_tool_role_matching(role_name, should_match):
|
||||||
|
|||||||
Reference in New Issue
Block a user