Test that auth fails when not authenticated.
()
| 1567 | |
| 1568 | @pytest.mark.slow |
| 1569 | def 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', |
nothing calls this directly
no test coverage detected