Test authenticate_basic_token with bearer token and auth headers.
()
| 1625 | |
| 1626 | |
| 1627 | def test_authenticate_basic_token(): |
| 1628 | """Test authenticate_basic_token with bearer token and auth headers.""" |
| 1629 | with HeaderAuthFlightServer(auth_handler=no_op_auth_handler, middleware={ |
| 1630 | "auth": HeaderAuthServerMiddlewareFactory() |
| 1631 | }) as server, \ |
| 1632 | FlightClient(('localhost', server.port)) as client: |
| 1633 | token_pair = client.authenticate_basic_token(b'test', b'password') |
| 1634 | assert token_pair[0] == b'authorization' |
| 1635 | assert token_pair[1] == b'Bearer token1234' |
| 1636 | |
| 1637 | |
| 1638 | def test_authenticate_basic_token_invalid_password(): |
nothing calls this directly
no test coverage detected