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

Function test_extra_info

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

Source from the content-addressed store, hash-verified

2177
2178
2179def test_extra_info():
2180 with ErrorFlightServer() as server, \
2181 FlightClient(('localhost', server.port)) as client:
2182 try:
2183 list(client.do_action(flight.Action("protobuf", b"")))
2184 assert False
2185 except flight.FlightUnauthorizedError as e:
2186 assert e.extra_info is not None
2187 ei = e.extra_info
2188 assert ei == b'this is an error message'
2189
2190
2191@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