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

Function test_list_actions

python/pyarrow/tests/test_flight.py:1313–1328  ·  view source on GitHub ↗

Make sure the return type of ListActions is validated.

()

Source from the content-addressed store, hash-verified

1311
1312
1313def test_list_actions():
1314 """Make sure the return type of ListActions is validated."""
1315 # ARROW-6392
1316 with ListActionsErrorFlightServer() as server, \
1317 FlightClient(('localhost', server.port)) as client:
1318 with pytest.raises(
1319 flight.FlightServerError,
1320 match=("Results of list_actions must be "
1321 "ActionType or tuple")
1322 ):
1323 list(client.list_actions())
1324
1325 with ListActionsFlightServer() as server, \
1326 FlightClient(('localhost', server.port)) as client:
1327 assert list(client.list_actions()) == \
1328 ListActionsFlightServer.expected_actions()
1329
1330
1331class 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