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

Function test_extra_info

python/pyarrow/tests/test_flight.py:2217–2226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2215
2216
2217def test_extra_info():
2218 with ErrorFlightServer() as server, \
2219 FlightClient(('localhost', server.port)) as client:
2220 try:
2221 list(client.do_action(flight.Action("protobuf", b"")))
2222 assert False
2223 except flight.FlightUnauthorizedError as e:
2224 assert e.extra_info is not None
2225 ei = e.extra_info
2226 assert ei == b'this is an error message'
2227
2228
2229@pytest.mark.requires_testing_data

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
ErrorFlightServerClass · 0.85
listFunction · 0.85
do_actionMethod · 0.45

Tested by

no test coverage detected