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

Function test_flight_info_defaults

python/pyarrow/tests/test_flight.py:1104–1119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1102
1103
1104def test_flight_info_defaults():
1105 fi1 = flight.FlightInfo(pa.schema([]), flight.FlightDescriptor.for_path(), [])
1106 fi2 = flight.FlightInfo(
1107 pa.schema([]),
1108 flight.FlightDescriptor.for_path(), [], total_records=-1, total_bytes=-1)
1109 fi3 = flight.FlightInfo(
1110 pa.schema([]),
1111 flight.FlightDescriptor.for_path(), [], total_records=None, total_bytes=None)
1112
1113 assert fi1.total_records == -1
1114 assert fi2.total_records == -1
1115 assert fi3.total_records == -1
1116
1117 assert fi1.total_bytes == -1
1118 assert fi2.total_bytes == -1
1119 assert fi3.total_bytes == -1
1120
1121
1122def test_flight_server_location_argument():

Callers

nothing calls this directly

Calls 1

schemaMethod · 0.45

Tested by

no test coverage detected