()
| 2215 | |
| 2216 | |
| 2217 | def 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 |
nothing calls this directly
no test coverage detected