Make sure the return type of ListActions is validated.
()
| 1273 | |
| 1274 | |
| 1275 | def test_list_actions(): |
| 1276 | """Make sure the return type of ListActions is validated.""" |
| 1277 | # ARROW-6392 |
| 1278 | with ListActionsErrorFlightServer() as server, \ |
| 1279 | FlightClient(('localhost', server.port)) as client: |
| 1280 | with pytest.raises( |
| 1281 | flight.FlightServerError, |
| 1282 | match=("Results of list_actions must be " |
| 1283 | "ActionType or tuple") |
| 1284 | ): |
| 1285 | list(client.list_actions()) |
| 1286 | |
| 1287 | with ListActionsFlightServer() as server, \ |
| 1288 | FlightClient(('localhost', server.port)) as client: |
| 1289 | assert list(client.list_actions()) == \ |
| 1290 | ListActionsFlightServer.expected_actions() |
| 1291 | |
| 1292 | |
| 1293 | class ConvenienceServer(FlightServerBase): |
nothing calls this directly
no test coverage detected