MCPcopy Create free account
hub / github.com/apache/arrow / ListActionsFlightServer

Class ListActionsFlightServer

python/pyarrow/tests/test_flight.py:314–326  ·  view source on GitHub ↗

A Flight server that tests ListActions.

Source from the content-addressed store, hash-verified

312
313
314class 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
329class ListActionsErrorFlightServer(FlightServerBase):

Callers 1

test_list_actionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_list_actionsFunction · 0.68