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

Function test_http_basic_unauth

python/pyarrow/tests/test_flight.py:1607–1614  ·  view source on GitHub ↗

Test that auth fails when not authenticated.

()

Source from the content-addressed store, hash-verified

1605
1606@pytest.mark.slow
1607def test_http_basic_unauth():
1608 """Test that auth fails when not authenticated."""
1609 with EchoStreamFlightServer(auth_handler=basic_auth_handler) as server, \
1610 FlightClient(('localhost', server.port)) as client:
1611 action = flight.Action("who-am-i", b"")
1612 with pytest.raises(flight.FlightUnauthenticatedError,
1613 match=".*unauthenticated.*"):
1614 list(client.do_action(action))
1615
1616
1617@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