Try a simple list_flights call.
()
| 1157 | |
| 1158 | |
| 1159 | def test_flight_list_flights(): |
| 1160 | """Try a simple list_flights call.""" |
| 1161 | with ConstantFlightServer() as server, \ |
| 1162 | flight.connect(('localhost', server.port)) as client: |
| 1163 | assert list(client.list_flights()) == [] |
| 1164 | flights = client.list_flights(ConstantFlightServer.CRITERIA) |
| 1165 | assert len(list(flights)) == 1 |
| 1166 | |
| 1167 | |
| 1168 | def test_flight_client_close(): |
nothing calls this directly
no test coverage detected