brack3t/Djrill — pull request #5 by medmunds (2012-11-01 01:32:00+00:00)
Title: Testing for backend API calls (using mock); add runtests.py.

This adds a base testcase that can be used to verify the backend generates the expected Mandrill API calls. It then uses this to add a test on Django's basic send_mail functionality with Djrill. (It mocks requests.post to avoid actually calling Mandrill. The base testcase is broken out separately to make it easy to add other tests as we start exposing other Mandrill functionality later.)

It also adds a "runtests.py" script that can be used to run the tests in isolation (without installing Djrill into another Django app) and documents this in the readme.

Cherry-picked from:
medmunds/Djrill@8c26807a: Add runtests.py for testing separately from other Django apps
medmunds/Djrill@cd8504b1: Make tests compatible with setuptools
medmunds/Djrill@4ac65b78: Set up testing on the backend API calls, using mock