ref: Remove useless pytest.mark.asyncio (#4364)

This commit is contained in:
Christophe Bornet 2024-11-02 14:46:07 +01:00 • committed by GitHub
commit df22924b0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 0 additions and 53 deletions

View file

@ -1,4 +1,3 @@
import pytest
from langflow.components.inputs import ChatInput
from langflow.memory import get_messages
from langflow.schema.message import Message
@ -6,7 +5,6 @@ from langflow.schema.message import Message
from tests.integration.utils import run_single_component
@pytest.mark.asyncio
async def test_default():
outputs = await run_single_component(ChatInput, run_input="hello")
assert isinstance(outputs["message"], Message)
@ -21,7 +19,6 @@ async def test_default():
assert outputs["message"].sender_name == "User"
@pytest.mark.asyncio
async def test_sender():
outputs = await run_single_component(
ChatInput, inputs={"sender": "Machine", "sender_name": "AI"}, run_input="hello"
@ -32,7 +29,6 @@ async def test_sender():
assert outputs["message"].sender_name == "AI"
@pytest.mark.asyncio
async def test_do_not_store_messages():
session_id = "test-session-id"
outputs = await run_single_component(