mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Use real Response object in DjrillBackendMockAPITestCase tests.
(Improves testing accuracy around API response encoding.) * Add `six` as test dependency (six.BytesIO, six.b) * Change MockResponse content to bytes (because HTTP responses are bytes, not strings)
This commit is contained in:
@@ -45,7 +45,8 @@ combinations of Django and Python versions. (Full list in
|
||||
The included tests verify that Djrill constructs the expected Mandrill API
|
||||
calls, without actually calling Mandrill or sending any email. So the tests
|
||||
don't require a Mandrill API key, but they *do* require
|
||||
`mock <http://www.voidspace.org.uk/python/mock/index.html>`_ (``pip install mock``).
|
||||
`mock <http://www.voidspace.org.uk/python/mock/index.html>`_
|
||||
and `six <https://pythonhosted.org/six/>`_ (``pip install mock six``).
|
||||
|
||||
To run the tests, either::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user