How to test AWS services with Moto

Описание к видео How to test AWS services with Moto

In this week's video I introduce testing with a Python module called Moto. Moto mocks AWS services infrastructure. So that you can thoroughly unit test your code without having to actually connect to AWS. Here we take a basic (but fairly common) example of uploading a file to S3 using boto3. Then we test the code with Moto showing how moto mocks the backend and raises some errors that AWS would respond with.

Useful documentation:
http://docs.getmoto.org/en/latest/
https://boto3.amazonaws.com/v1/docume...
https://docs.pytest.org/en/latest/

Комментарии

Информация по комментариям в разработке