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

Function test_flight_list_flights

python/pyarrow/tests/test_flight.py:1159–1165  ·  view source on GitHub ↗

Try a simple list_flights call.

()

Source from the content-addressed store, hash-verified

1157
1158
1159def 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
1168def 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