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

Method do_action

python/pyarrow/tests/test_flight.py:426–433  ·  view source on GitHub ↗
(self, context, action)

Source from the content-addressed store, hash-verified

424 }
425
426 def do_action(self, context, action):
427 error_cases = ErrorFlightServer.error_cases()
428 if action.type in error_cases:
429 raise error_cases[action.type]("foo")
430 elif action.type == "protobuf":
431 err_msg = b'this is an error message'
432 raise flight.FlightUnauthorizedError("foo", err_msg)
433 raise NotImplementedError
434
435 def list_flights(self, context, criteria):
436 yield flight.FlightInfo(

Callers

nothing calls this directly

Calls 1

error_casesMethod · 0.80

Tested by

no test coverage detected