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

Barry Warsaw barry at list.org
Tue Jan 6 04:26:56 CET 2015

On Jan 04, 2015, at 10:21 AM, Andrew Stuart wrote:

>What’s the advantage of using VCR over a set of tests that use Kenneth Reitz
>requests library to send HTTP queries to the API and have a look at the
>response to see if it contains the expected HTTP codes/data?

The latter approach requires a running MM3 core REST server.  The vcr approach
only requires that when the core's REST API changes, i.e. in order to generate
a new tape.yaml file.  The nice thing about vcr is that it integrates with all
kinds of HTTP libraries, including httplib2 which is what mailman.client uses,
so the test suite just adds a simple context manager to go through vcr when in
replay mode.


More information about the Mailman-Developers mailing list