ref: Remove autouse from pytest client fixture (#4158)
Remove autouse from pytest client fixture
This commit is contained in:
parent
2be7c56939
commit
047077cee4
41 changed files with 17 additions and 190 deletions
|
|
@ -12,11 +12,6 @@ from langflow.schema.message import Message
|
|||
from langflow.services.settings.feature_flags import FEATURE_FLAGS
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def add_toolkit_output():
|
||||
FEATURE_FLAGS.add_toolkit_output = True
|
||||
|
|
@ -87,7 +82,7 @@ def test_component_tool():
|
|||
|
||||
|
||||
@pytest.mark.api_key_required
|
||||
@pytest.mark.usefixtures("add_toolkit_output")
|
||||
@pytest.mark.usefixtures("add_toolkit_output", "client")
|
||||
def test_component_tool_with_api_key():
|
||||
chat_output = ChatOutput()
|
||||
openai_llm = OpenAIModelComponent()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue