Skip to main content

pytest-aiomoto

Documentation Status

PyPI version Python versions

pytest fixtures for AWS services, with support for asyncio fixtures using aiobotocore

Warning

  • This package is work in progress, it is not recommended for production purposes. During the initial phases of this project, it is likely that some releases could introduce breaking changes in test fixtures. It's highly recommended pinning this dependency to patch releases during the 0.x.y releases.
  • This package could restrict available versions of aws libs, including: aiobotocore, botocore, boto3, and moto. The initial intention is to allow any 2.x.y versions of aiobotocore and moto.
  • The fixtures in this package might not be optimized for concurrent testing. It is not known yet whether the fixtures are thread safe or adequately randomized to support parallel test suites.

Installation

You can install "pytest-aiomoto" via pip

$ pip install pytest-aiomoto

Usage

To list the available fixtures

$ pytest --fixtures

This project attempts to provide some common fixtures for commonly used services. As such, it is not a generic package for any services; the moto project provides that and this project builds on that. This project aims to create some useful fixtures that behave nearly the same way for both synchronous clients (botocore) and asynchronous clients (aiobotocore).

Contributing

Contributions are welcome, if you build similar common fixtures or build on the existing package fixtures. The details for bug fixes could be complicated, due to the dependencies on aiobotocore and moto.

Please review github collaboration practices. Once you clone your fork of the repository:

cd pytest-aiomoto
make init
make test

It's recommended that development use python 3.7, to avoid introducing any python code that might not be compatible with the minimum version of python supported. This is important in the context of the general evolution of asyncio in python.

Most development is done in a linux context (e.g. Ubuntu LTS). If some development tools or common practices are not working as expected on OSX or Windows, there is limited support for adapting to various development environments.

Tests are run with pytest, please ensure the percentage of coverage at least stays the same before you submit a pull request. The expectation for contributions might be a slow process, please do not anticipate any turn around on the order of days (unless you're already a core contributor). Using your own fork can be a faster way to evolve your fixtures for your use cases.

Issues

If you encounter any problems, please file an issue along with a detailed description.

License

Distributed under the terms of the Apache Software License 2.0, "pytest-aiomoto" is free and open source software.

Copyright 2021 Darren Weber

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Notices

Inspiration for this project comes from testing the aio-aws project, which uses the Apache 2 license.

Metadata

Release files for pytest-aiomoto 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-aiomoto 0.1.1
File Size Uploaded Provenance Actions
pytest-aiomoto-0.1.1.tar.gz 21.7 kB Without provenance Details for pytest-aiomoto-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-aiomoto 0.1.1
File Interpreter ABI Platform Actions
pytest_aiomoto-0.1.1-py3-none-any.whl Python 3 none any Details for pytest_aiomoto-0.1.1-py3-none-any.whl

Total release size: 49.2 kB

Release files / pytest-aiomoto-0.1.1.tar.gz

Download URL pytest-aiomoto-0.1.1.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b8b5ea551009b168bf7ec89afae950ca02a2592c844f76c2f5433c8634de9050
BLAKE2b-256 checksum
How to use checksums
1b814d09b54aea0ad222b9a48a84cdc4069b8fc38d9b4308fe8d439dec20b34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.7.12 Linux/5.4.0-91-generic

Release files / pytest_aiomoto-0.1.1-py3-none-any.whl

Download URL pytest_aiomoto-0.1.1-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
defeb509a1b571bcb053bc93992e1c4e79e87ed476fcb3f86bb70920525738d3
BLAKE2b-256 checksum
How to use checksums
92945abf70c88f64a89a7163b5af68c07b7195995a2bc773dbb3a0fb21dcb370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.7.12 Linux/5.4.0-91-generic

Security for pytest-aiomoto 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page