azavea / django-amazon-ses

A Django email backend that uses Boto3 to interact with Amazon Simple Email Service (SES).
Apache License 2.0
85 stars 25 forks source link

Make Moto able to mock Boto3 API calls #40

Closed hectcastro closed 6 years ago

hectcastro commented 6 years ago

Boto3 v1.8+ replaced requests with urllib3, which broke the way Moto was mocking components of Boto3.

The deprecated Moto decorators used in this change set mock at the socket level, which allow it to bypass details about the HTTP client used. This approach is not ideal, but more desirable than the alternative of pinning Boto<1.8.

See:


Testing

See: https://travis-ci.org/azavea/django-amazon-ses/builds/429608546