(client, json_chat_input, logged_in_headers)
| 652 | |
| 653 | @pytest.fixture |
| 654 | async 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 |
nothing calls this directly
no test coverage detected