A Flight server that tests ListActions.
| 312 | |
| 313 | |
| 314 | class ListActionsFlightServer(FlightServerBase): |
| 315 | """A Flight server that tests ListActions.""" |
| 316 | |
| 317 | @classmethod |
| 318 | def expected_actions(cls): |
| 319 | return [ |
| 320 | ("action-1", "description"), |
| 321 | ("action-2", ""), |
| 322 | flight.ActionType("action-3", "more detail"), |
| 323 | ] |
| 324 | |
| 325 | def list_actions(self, context): |
| 326 | yield from self.expected_actions() |
| 327 | |
| 328 | |
| 329 | class ListActionsErrorFlightServer(FlightServerBase): |
no outgoing calls