ref: Remove autouse from pytest client fixture (#4158)

Remove autouse from pytest client fixture
This commit is contained in:
Christophe Bornet 2024-10-16 00:55:10 +02:00 • committed by GitHub
commit 047077cee4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 17 additions and 190 deletions

View file

@ -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()