cdp.auth.test.factories package¶
Submodules¶
cdp.auth.test.factories.auth_client_options_factory module¶
- cdp.auth.test.factories.auth_client_options_factory.auth_client_options_factory()¶
Create and return a factory for Urllib3AuthClientOptions fixtures.
- Returns:
A factory function that creates Urllib3AuthClientOptions instances
- Return type:
callable
cdp.auth.test.factories.auth_headers_factory module¶
- cdp.auth.test.factories.auth_headers_factory.auth_headers_factory()¶
Create and return a factory for authentication headers.
- Returns:
A factory function that creates auth header dictionaries
- Return type:
callable
cdp.auth.test.factories.auth_options_factory module¶
- cdp.auth.test.factories.auth_options_factory.auth_options_factory()¶
Create and return a factory for GetAuthHeadersOptions fixtures.
- Returns:
A factory function that creates GetAuthHeadersOptions instances
- Return type:
callable
- cdp.auth.test.factories.auth_options_factory.websocket_auth_options_factory()¶
Create and return a factory for WebSocket GetAuthHeadersOptions fixtures.
- Returns:
A factory function that creates GetWebSocketAuthHeadersOptions instances for WebSocket
- Return type:
callable
cdp.auth.test.factories.http_client_factory module¶
- cdp.auth.test.factories.http_client_factory.http_client_factory(http_response_factory)¶
Create and return a factory for mock HTTP clients.
- Parameters:
http_response_factory – Factory for creating mock HTTP responses
- Returns:
A factory function that creates mock HTTP client objects
- Return type:
callable
cdp.auth.test.factories.http_response_factory module¶
- cdp.auth.test.factories.http_response_factory.http_response_factory()¶
Create and return a factory for mock HTTP responses.
- Returns:
A factory function that creates mock HTTP response objects
- Return type:
callable
cdp.auth.test.factories.jwt_options_factory module¶
- cdp.auth.test.factories.jwt_options_factory.jwt_options_factory()¶
Create and return a factory for JwtOptions fixtures.
- Returns:
A factory function that creates JwtOptions instances
- Return type:
callable
- cdp.auth.test.factories.jwt_options_factory.websocket_jwt_options_factory()¶
Create and return a factory for WebSocket JwtOptions fixtures with null request parameters.
- Returns:
A factory function that creates JwtOptions instances for WebSocket
- Return type:
callable
cdp.auth.test.factories.private_key_factory module¶
- cdp.auth.test.factories.private_key_factory.ec_private_key_factory()¶
Create and return a factory for EC private keys.
- Returns:
A factory function that creates PEM-encoded EC private keys
- Return type:
callable
- cdp.auth.test.factories.private_key_factory.ed25519_private_key_factory()¶
Create and return a factory for Ed25519 private keys.
- Returns:
A factory function that creates base64-encoded Ed25519 private keys
- Return type:
callable
Module contents¶
Test factories for the auth package.