Test authenticate_basic_token with bearer token and auth headers.
()
| 1663 | |
| 1664 | |
| 1665 | def test_authenticate_basic_token(): |
| 1666 | """Test authenticate_basic_token with bearer token and auth headers.""" |
| 1667 | with HeaderAuthFlightServer(auth_handler=no_op_auth_handler, middleware={ |
| 1668 | "auth": HeaderAuthServerMiddlewareFactory() |
| 1669 | }) as server, \ |
| 1670 | FlightClient(('localhost', server.port)) as client: |
| 1671 | token_pair = client.authenticate_basic_token(b'test', b'password') |
| 1672 | assert token_pair[0] == b'authorization' |
| 1673 | assert token_pair[1] == b'Bearer token1234' |
| 1674 | |
| 1675 | |
| 1676 | def test_authenticate_basic_token_invalid_password(): |
nothing calls this directly
no test coverage detected