pytest_moto_fixtures package
Subpackages
Submodules
pytest_moto_fixtures.fixtures module
Fixtures for pytest.
- pytest_moto_fixtures.fixtures.aws_config() Iterator[None]
Configure AWS mock.
- pytest_moto_fixtures.fixtures.eventbridge_bus(eventbridge_client: EventBridgeClient, sqs_client: SQSClient) Iterator[EventBridgeBus]
A bus in the Event Bridge service.
- pytest_moto_fixtures.fixtures.eventbridge_client(aws_config: None) EventBridgeClient
Event Bridge client.
- pytest_moto_fixtures.fixtures.s3_bucket(s3_client: S3Client) Iterator[S3Bucket]
A bucket in S3 service.
- pytest_moto_fixtures.fixtures.s3_client(aws_config: None) S3Client
S3 Client.
- pytest_moto_fixtures.fixtures.sns_client(aws_config: None) SNSClient
SNS Client.
- pytest_moto_fixtures.fixtures.sns_fifo_topic(sns_client: SNSClient, sqs_client: SQSClient) Iterator[SNSTopic]
A fifo topic in the SNS service.
- pytest_moto_fixtures.fixtures.sns_topic(sns_client: SNSClient, sqs_client: SQSClient) Iterator[SNSTopic]
A topic in the SNS service.
- pytest_moto_fixtures.fixtures.sqs_client(aws_config: None) SQSClient
SQS Client.
pytest_moto_fixtures.utils module
Utils functions.
- class pytest_moto_fixtures.utils.NoArgs(value)
Bases:
EnumClass for values not provided in function calls.
- NO_ARG = None
Value not provided for the function.
- pytest_moto_fixtures.utils.randstr(*, chars: str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', length: int = 10) str
Generate a random string.
- Parameters:
chars – Characters that can be used to generate the string.
length – Length of generated string.
- Returns:
Generated string.
Module contents
Resources for testing code that interacts with AWS.