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

Function test_none_action_side_effect

python/pyarrow/tests/test_flight.py:2564–2574  ·  view source on GitHub ↗

Ensure that actions are executed even when we don't consume iterator. See https://issues.apache.org/jira/browse/ARROW-14255

()

Source from the content-addressed store, hash-verified

2562
2563
2564def test_none_action_side_effect():
2565 """Ensure that actions are executed even when we don't consume iterator.
2566
2567 See https://issues.apache.org/jira/browse/ARROW-14255
2568 """
2569
2570 with ActionNoneFlightServer() as server, \
2571 FlightClient(('localhost', server.port)) as client:
2572 client.do_action(flight.Action("append", b""))
2573 r = client.do_action(flight.Action("get_value", b""))
2574 assert json.loads(next(r).body.to_pybytes()) == [True]
2575
2576
2577@pytest.mark.slow # Takes a while for gRPC to "realize" writes fail

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
loadsMethod · 0.80
do_actionMethod · 0.45

Tested by

no test coverage detected