mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Testing on backend API calls, using mock; add runtests.py.
Cherry-picked from: 8c26807a - Add runtests.py for testing separately from other Django apps cd8504b1 - Make tests compatible with setuptools 4ac65b78 - Set up testing on the backend API calls, using mock
This commit is contained in:
16
README.rst
16
README.rst
@@ -106,6 +106,21 @@ Just like Django's ``EmailMessage`` and ``EmailMultiAlternatives``, ``DjrillMess
|
||||
``headers`` argument. Currently it only accepts ``Reply-To`` and ``X-*`` headers since that is all that Mandrill accepts. Any
|
||||
extra headers are silently discarded.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
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_
|
||||
(``pip install mock``). To run the tests, either::
|
||||
|
||||
python setup.py test
|
||||
|
||||
or::
|
||||
|
||||
python runtests.py
|
||||
|
||||
|
||||
Thanks
|
||||
------
|
||||
|
||||
@@ -118,3 +133,4 @@ the awesome ``requests`` library.
|
||||
.. _MailChimp: http://mailchimp.com
|
||||
.. _requests: http://docs.python-requests.org
|
||||
.. _django-adminplus: https://github.com/jsocol/django-adminplus
|
||||
.. _mock: http://www.voidspace.org.uk/python/mock/index.html
|
||||
|
||||
Reference in New Issue
Block a user