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

Class ListActionsFlightServer

python/pyarrow/tests/test_flight.py:312–324  ·  view source on GitHub ↗

A Flight server that tests ListActions.

Source from the content-addressed store, hash-verified

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

Callers 1

test_list_actionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_list_actionsFunction · 0.68