(client: AsyncClient, logged_in_headers)
| 706 | |
| 707 | @pytest.fixture |
| 708 | async def flow_component(client: AsyncClient, logged_in_headers): |
| 709 | chat_input = ChatInput() |
| 710 | graph = Graph(start=chat_input, end=chat_input) |
| 711 | graph_dict = graph.dump(name="Chat Input Component") |
| 712 | flow = FlowCreate(**graph_dict) |
| 713 | response = await client.post("api/v1/flows/", json=flow.model_dump(), headers=logged_in_headers) |
| 714 | assert response.status_code == 201 |
| 715 | yield response.json() |
| 716 | await client.delete(f"api/v1/flows/{response.json()['id']}", headers=logged_in_headers) |
| 717 | |
| 718 | |
| 719 | @pytest.fixture |
nothing calls this directly
no test coverage detected