fix(test_agent_utils.py): add name parameter to mock_react calls to ensure consistency in agent creation tests
This commit is contained in:
parent
8d2d273c6b
commit
d15d249929
|
|
@ -84,6 +84,7 @@ def test_create_agent_anthropic(mock_model, mock_config_repository):
|
|||
interrupt_after=['tools'],
|
||||
version="v2",
|
||||
state_modifier=mock_react.call_args[1]["state_modifier"],
|
||||
name="React",
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -213,7 +214,7 @@ def test_create_agent_anthropic_token_limiting_disabled(mock_model, mock_config_
|
|||
agent = create_agent(mock_model, [])
|
||||
|
||||
assert agent == "react_agent"
|
||||
mock_react.assert_called_once_with(mock_model, [], interrupt_after=['tools'], version="v2")
|
||||
mock_react.assert_called_once_with(mock_model, [], interrupt_after=['tools'], version="v2", name="React")
|
||||
|
||||
|
||||
# These tests have been moved to test_anthropic_token_limiter.py
|
||||
|
|
|
|||
Loading…
Reference in New Issue