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

Function added_flow_two_outputs

src/backend/tests/conftest.py:667–676  ·  view source on GitHub ↗
(client, json_two_outputs, logged_in_headers)

Source from the content-addressed store, hash-verified

665
666@pytest.fixture
667async def added_flow_two_outputs(client, json_two_outputs, logged_in_headers):
668 flow = orjson.loads(json_two_outputs)
669 data = flow["data"]
670 flow = FlowCreate(name="Two Outputs", description="description", data=data)
671 response = await client.post("api/v1/flows/", json=flow.model_dump(), headers=logged_in_headers)
672 assert response.status_code == 201
673 assert response.json()["name"] == flow.name
674 assert response.json()["data"] == flow.data
675 yield response.json()
676 await client.delete(f"api/v1/flows/{response.json()['id']}", headers=logged_in_headers)
677
678
679@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