[PATCH 1/2] test: add a function to run Python tests

Thomas Jost schnouki at schnouki.net
Tue Dec 13 09:21:34 PST 2011


On Sun, 11 Dec 2011 18:58:18 +0400, Dmitry Kurochkin <dmitry.kurochkin at gmail.com> wrote:
> Perhaps we should have a test-lib.py for test-specific stuff like this
> (similar to test-lib.el)?  I think it would be cleaner and makes it easy
> to add more Python test auxiliary functions later.

Well, right now that would probably be overkill: the stdout-to-file
redirection takes 3 lines at most. Besides we would still need to set
some environment variables to run python with the correct directories.
But of course if we need to add more helper functions for running python
tests, then a test-lib.py would be nice.

Maybe we could even think about using one of Python's unit test libs for
that: doctest, unittest (both in the standard library) and nose seem to
be the most popular ones.

Regards,

-- 
Thomas/Schnouki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111213/d3209294/attachment.pgp>


More information about the notmuch mailing list