vcrpy
vcrpy copied to clipboard
Automatically mock your HTTP interactions to simplify and speed up testing
as of 1.6.1 (as in Debian) ``` $> echo $http_proxy http://localhost:3128 $> venv-tests/bin/nosetests -s -v datalad/crawler/nodes/tests/test_misc.py datalad.crawler.nodes.tests.test_misc.test_get_deposition_filename ... ok datalad.crawler.nodes.tests.test_misc.test_assign ... SKIP: TODO datalad.crawler.nodes.tests.test_misc.test_rename ... SKIP: TODO ---------------------------------------------------------------------- Ran 3...
Currently it's possible to set parameters to be filtered of the request body using [`filter_post_data_parameters`](http://vcrpy.readthedocs.io/en/latest/advanced.html#advanced-use-of-filter-headers-filter-query-parameters-and-filter-post-data-parameters). It would be nice to support the same for PUT requests as well.
This PR fixes #507. The branch currently only contains modifications to tests to catch the underlying issue. The reason it was missed before was that the tests relied on `session.request(method...
I wonder if there is any way to also intercept http calls in a subprocess , possibly with [`PYTHONSTARTUP`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONSTARTUP). My use case is a fresh virtualenv created before running a...
I'm working on a VCRpy TransportAdapter plugin for HTTPie (https://httpie.org/) which will allow users to record REST API interactions using the http command line client. The work is basically done...
Love the API you have (very similar to Ruby's VRC) and very nice code! Another project I was toying around with (recently on HN, I believe I saw you comment)...
urllib (though deprecated) uses all kinds of weird httplib compat classes that aren't stubbed properly by vcr. I would like to support this someday.
They are creating their own verifiedhttpsconnection, we would need to patch that as well. https://github.com/campaignmonitor/createsend-python/blob/master/createsend/utils.py Example traceback: ``` python File "/Users/djgoku/development/virtualenv/please_work/lib/python2.7/site-packages/createsend/client.py", line 33, in campaigns response = self._get(self.uri_for("campaigns")) File "/Users/djgoku/development/virtualenv/please_work/lib/python2.7/site-packages/createsend/createsend.py",...