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

Function test_http_basic_unauth

python/pyarrow/tests/test_flight.py:1569–1576  ·  view source on GitHub ↗

Test that auth fails when not authenticated.

()

Source from the content-addressed store, hash-verified

1567
1568@pytest.mark.slow
1569def test_http_basic_unauth():
1570 """Test that auth fails when not authenticated."""
1571 with EchoStreamFlightServer(auth_handler=basic_auth_handler) as server, \
1572 FlightClient(('localhost', server.port)) as client:
1573 action = flight.Action("who-am-i", b"")
1574 with pytest.raises(flight.FlightUnauthenticatedError,
1575 match=".*unauthenticated.*"):
1576 list(client.do_action(action))
1577
1578
1579@pytest.mark.skipif(os.name == 'nt',

Callers

nothing calls this directly

Calls 4

FlightClientClass · 0.90
listFunction · 0.85
do_actionMethod · 0.45

Tested by

no test coverage detected