(client, json_two_outputs, logged_in_headers)
| 665 | |
| 666 | @pytest.fixture |
| 667 | async 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 |
nothing calls this directly
no test coverage detected