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

Function test_flight_get_schema

python/pyarrow/tests/test_flight.py:1267–1272  ·  view source on GitHub ↗

Make sure GetSchema returns correct schema.

()

Source from the content-addressed store, hash-verified

1265
1266
1267def test_flight_get_schema():
1268 """Make sure GetSchema returns correct schema."""
1269 with GetInfoFlightServer() as server, \
1270 FlightClient(('localhost', server.port)) as client:
1271 info = client.get_schema(flight.FlightDescriptor.for_command(b''))
1272 assert info.schema == pa.schema([('a', pa.int32())])
1273
1274
1275def 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