Skip to content

Commit 683ff47

Browse files
committed
Remove unnecessary test
1 parent 9dfd002 commit 683ff47

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/test_agent.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,17 +3616,6 @@ def test_deprecated_kwargs_validation_agent_init():
36163616
Agent('test', foo='value1', bar='value2') # type: ignore[call-arg]
36173617

36183618

3619-
def test_deprecated_kwargs_validation_agent_run():
3620-
"""Test that invalid kwargs raise UserError in Agent.run method."""
3621-
agent = Agent('test')
3622-
3623-
with pytest.raises(UserError, match='Unknown keyword arguments: `invalid_kwarg`'):
3624-
agent.run_sync('test', invalid_kwarg='value') # type: ignore[call-arg]
3625-
3626-
with pytest.raises(UserError, match='Unknown keyword arguments: `foo`, `bar`'):
3627-
agent.run_sync('test', foo='value1', bar='value2') # type: ignore[call-arg]
3628-
3629-
36303619
def test_deprecated_kwargs_still_work():
36313620
"""Test that valid deprecated kwargs still work with warnings."""
36323621
import warnings

0 commit comments

Comments
 (0)