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

Function test_flight_list_flights

python/pyarrow/tests/test_flight.py:1197–1203  ·  view source on GitHub ↗

Try a simple list_flights call.

()

Source from the content-addressed store, hash-verified

1195
1196
1197def 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
1206def test_flight_client_close():

Callers

nothing calls this directly

Calls 4

listFunction · 0.85
lenFunction · 0.85
list_flightsMethod · 0.45

Tested by

no test coverage detected