[Mailman-Developers] MM3 REST API testing [was: Python 3]
flo.fuchs at gmail.com
Tue Jan 6 23:11:44 CET 2015
Am 06.01.2015 um 04:24 schrieb Barry Warsaw:
> 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.
> 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
> Please have a look and let me know what you think.
I haven't had the time to look at it today. But will definitely do it
tomorrow. Thanks a lot!
More information about the Mailman-Developers