MCPcopy
hub / github.com/langflow-ai/langflow / added_flow_chat_input

Function added_flow_chat_input

src/backend/tests/conftest.py:654–663  ·  view source on GitHub ↗
(client, json_chat_input, logged_in_headers)

Source from the content-addressed store, hash-verified

652
653@pytest.fixture
654async def added_flow_chat_input(client, json_chat_input, logged_in_headers):
655 flow = orjson.loads(json_chat_input)
656 data = flow["data"]
657 flow = FlowCreate(name="Chat Input", description="description", data=data)
658 response = await client.post("api/v1/flows/", json=flow.model_dump(), headers=logged_in_headers)
659 assert response.status_code == 201
660 assert response.json()["name"] == flow.name
661 assert response.json()["data"] == flow.data
662 yield response.json()
663 await client.delete(f"api/v1/flows/{response.json()['id']}", headers=logged_in_headers)
664
665
666@pytest.fixture

Callers

nothing calls this directly

Calls 5

FlowCreateClass · 0.90
postMethod · 0.45
model_dumpMethod · 0.45
jsonMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected