[Mailman-Developers] MM3 REST API testing [was: Python 3]

Barry Warsaw barry at list.org
Tue Jan 6 04:24:29 CET 2015


On Jan 01, 2015, at 11:40 PM, Barry Warsaw wrote:

>I'm playing with a solution that involves the use of the 'vcr' package

So this branch is now ready for review.

https://code.launchpad.net/~barry/mailman.client/bilingual/+merge/245537

I even added documentation on how to run the test to record the yaml file
containing the HTTP traffic.  There are tox rules for doing both the
recording, and for running the test suite with the recorded traffic against
both Python 2 and Python 3.  I've only tested 2.7 and 3.4 since I don't
currently have good builds of 2.6, 3.2, or 3.3, but the tox.ini file should
support those.

There are now no imports of any `mailman` modules.  I did have to add a new
top-level `queues` resource to the REST API which will allow you to inject
messages, query, and delete messages from the various queues.  I thought this
was a pretty handy feature anyway, and it was easy to add, so that's now in
the Mailman 3 trunk.  Which btw, as you might notice, I did go ahead and merge
the py3 branch.  I think with this mailman.client approach and a REST-based HK
IArchiver implementation (TBD), it was safe enough to do, and I didn't want to
have to continue to implement new features in both branches (e.g. the queues
resource).

Please have a look and let me know what you think.

Cheers,
-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20150105/16895a55/attachment.sig>


More information about the Mailman-Developers mailing list