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

Function test_list_actions

python/pyarrow/tests/test_flight.py:1275–1290  ·  view source on GitHub ↗

Make sure the return type of ListActions is validated.

()

Source from the content-addressed store, hash-verified

1273
1274
1275def test_list_actions():
1276 """Make sure the return type of ListActions is validated."""
1277 # ARROW-6392
1278 with ListActionsErrorFlightServer() as server, \
1279 FlightClient(('localhost', server.port)) as client:
1280 with pytest.raises(
1281 flight.FlightServerError,
1282 match=("Results of list_actions must be "
1283 "ActionType or tuple")
1284 ):
1285 list(client.list_actions())
1286
1287 with ListActionsFlightServer() as server, \
1288 FlightClient(('localhost', server.port)) as client:
1289 assert list(client.list_actions()) == \
1290 ListActionsFlightServer.expected_actions()
1291
1292
1293class ConvenienceServer(FlightServerBase):

Callers

nothing calls this directly

Calls 6

FlightClientClass · 0.90
listFunction · 0.85
expected_actionsMethod · 0.80
list_actionsMethod · 0.45

Tested by

no test coverage detected