Try a simple list_flights call.
()
| 1195 | |
| 1196 | |
| 1197 | def test_flight_list_flights(): |
| 1198 | """Try a simple list_flights call.""" |
| 1199 | with ConstantFlightServer() as server, \ |
| 1200 | flight.connect(('localhost', server.port)) as client: |
| 1201 | assert list(client.list_flights()) == [] |
| 1202 | flights = client.list_flights(ConstantFlightServer.CRITERIA) |
| 1203 | assert len(list(flights)) == 1 |
| 1204 | |
| 1205 | |
| 1206 | def test_flight_client_close(): |
nothing calls this directly
no test coverage detected