ref: Remove useless pytest.mark.asyncio (#4364)
This commit is contained in:
parent
dc4e0e5ce1
commit
df22924b0e
22 changed files with 0 additions and 53 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import pytest
|
||||
from langflow.components.outputs import ChatOutput
|
||||
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_string():
|
||||
outputs = await run_single_component(ChatOutput, inputs={"input_value": "hello"})
|
||||
assert isinstance(outputs["message"], Message)
|
||||
|
|
@ -15,7 +13,6 @@ async def test_string():
|
|||
assert outputs["message"].sender_name == "AI"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_message():
|
||||
outputs = await run_single_component(ChatOutput, inputs={"input_value": Message(text="hello")})
|
||||
assert isinstance(outputs["message"], Message)
|
||||
|
|
@ -24,7 +21,6 @@ async def test_message():
|
|||
assert outputs["message"].sender_name == "AI"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_do_not_store_message():
|
||||
session_id = "test-session-id"
|
||||
outputs = await run_single_component(
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
import pytest
|
||||
from langflow.components.outputs import TextOutputComponent
|
||||
from langflow.schema.message import Message
|
||||
|
||||
from tests.integration.utils import run_single_component
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test():
|
||||
outputs = await run_single_component(TextOutputComponent, inputs={"input_value": "hello"})
|
||||
assert isinstance(outputs["text"], Message)
|
||||
|
|
@ -14,7 +12,6 @@ async def test():
|
|||
assert outputs["text"].sender_name is None
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_message():
|
||||
outputs = await run_single_component(TextOutputComponent, inputs={"input_value": Message(text="hello")})
|
||||
assert isinstance(outputs["text"], Message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue