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

Method do_action

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

error_casesMethod · 0.80

Tested by

no test coverage detected