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

Function test_get_flight_info_error

python/pyarrow/tests/test_flight_async.py:83–91  ·  view source on GitHub ↗
(async_client)

Source from the content-addressed store, hash-verified

81
82
83def test_get_flight_info_error(async_client):
84 async def _test():
85 descriptor = flight.FlightDescriptor.for_command(b"unknown")
86 with pytest.raises(NotImplementedError) as excinfo:
87 await async_client.get_flight_info(descriptor)
88
89 assert "Unknown command" in repr(excinfo.value)
90
91 asyncio.run(_test())

Callers

nothing calls this directly

Calls 2

_testFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected