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

Function test_flight_get_schema

python/pyarrow/tests/test_flight.py:1305–1310  ·  view source on GitHub ↗

Make sure GetSchema returns correct schema.

()

Source from the content-addressed store, hash-verified

1303
1304
1305def test_flight_get_schema():
1306 """Make sure GetSchema returns correct schema."""
1307 with GetInfoFlightServer() as server, \
1308 FlightClient(('localhost', server.port)) as client:
1309 info = client.get_schema(flight.FlightDescriptor.for_command(b''))
1310 assert info.schema == pa.schema([('a', pa.int32())])
1311
1312
1313def test_list_actions():

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
GetInfoFlightServerClass · 0.85
get_schemaMethod · 0.80
schemaMethod · 0.45

Tested by

no test coverage detected