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