I have the following code in the implementation (uses requests lib): I'm using HTTPretty's to simulate this in a test: However, MisRedirectedReq ...
I have the following code in the implementation (uses requests lib): I'm using HTTPretty's to simulate this in a test: However, MisRedirectedReq ...
I have a test which simulates a request from a remote server which does not exist: get_webfinger does in fact catch ConnectionError. When it runs, ...
Here's a test I've tried writing: import httpretty import requests @httpretty.activate def test(): httpretty.register_uri( httpretty.G ...
My Travis build is timing out for some reason. Here is the link to the logs: https://travis-ci.org/madedotcom/atomicpuppy/builds/70202335 And my curr ...
The following pytest-test uses httpretty, to mock a request. It writes the fetched data to a file: What I would like to do now, is making use of th ...
While making python-intercom Python 3 compatible, I ran into an issue on Travis. The nosetests command doesn't appear to exit when run on Python 3.4 ...
I'm currently experimenting with using the Python version of Selenium WebDriver along with the Pytest testing frameworkto do automation testing of web ...
I'm new to python tests so don't hesitate to provide any obvious information. Basically I want to do some RESTful tests using python, and found the h ...
Using the HTTPretty library for Python, I can create mock HTTP responses of choice and then pick them up i.e. with the requests library like so: Ou ...
I have written a decorator that is working correctly but i stumbled with the correct solution by trial and error and my litle knowledge about decorato ...
Whenever I enable HTTPretty, I'm unable to make a connection with PyMongo. I know that HTTPretty alters the core socket module; is there any way aroun ...
How does one go about asserting that a target URL was never requested when using HTTPretty to intercept HTTP requests in Python unit tests? ...
TL;DR What libraries/calls are available to handle query strings containing semi-colons differently than parse_qs? Full Background I'm working wi ...