File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -3616,17 +3616,6 @@ def test_deprecated_kwargs_validation_agent_init():
3616
3616
Agent ('test' , foo = 'value1' , bar = 'value2' ) # type: ignore[call-arg]
3617
3617
3618
3618
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
-
3630
3619
def test_deprecated_kwargs_still_work ():
3631
3620
"""Test that valid deprecated kwargs still work with warnings."""
3632
3621
import warnings
You can’t perform that action at this time.
0 commit comments