ref: Auto-fix ruff rules in tests (#4154)
This commit is contained in:
parent
51b3909d60
commit
45c8f98692
80 changed files with 359 additions and 456 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
from langflow.base.tools.component_tool import ComponentToolkit
|
||||
from langflow.components.agents.ToolCallingAgent import ToolCallingAgentComponent
|
||||
from langflow.components.inputs.ChatInput import ChatInput
|
||||
|
|
@ -76,7 +75,7 @@ def test_component_tool():
|
|||
}
|
||||
assert component_toolkit.component == chat_input
|
||||
|
||||
result = component_tool.invoke(input=dict(input_value="test"))
|
||||
result = component_tool.invoke(input={"input_value": "test"})
|
||||
assert isinstance(result, Message)
|
||||
assert result.get_text() == "test"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue