(async_client)
| 81 | |
| 82 | |
| 83 | def 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()) |