Questions tagged [httpretty]

HTTPretty is a HTTP client mock library for Python 100% inspired on ruby's FakeWeb.

HTTPretty is a HTTP client mock library for 100% inspired on 's .

HTTPretty monkey patches Python's socket core module, re-implementing the HTTP protocol, by mocking requests and responses. As for it works in this way, you don't need to worry what http library you're gonna use. HTTPretty will mock the response for you :) (and also give you the latest requests so that you can check them).

This way even if the RESTful API server is down or its contains are changed, the expected reply can be mocked.

You should be using this tag if your question is related to the use of HTTPretty library or its API.

18 questions
0
votes
1 answer

Travis build timeouts even though test output reports success

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 current travis yml https://github.com/madedotcom/atomicpuppy/blob/master/.travis.yml I have tried…
Piotr Mazurek
  • 1,083
  • 1
  • 8
  • 14
0
votes
1 answer

Mocking requests sent by the Selenium WebDriver in Python and having the fake responses displayed in the browser instance driven by the driver instead

I'm currently experimenting with using the Python version of Selenium WebDriver along with the Pytest testing frameworkto do automation testing of web applications. I came across a problem when trying to do HTTP request mocking within my Selenium…
Wolf_Brigade
  • 101
  • 1
  • 8
0
votes
2 answers

How to execute a python test using httpretty/sure

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 httpretty and sure libraries which look really nice. I have a python file…
JSarwer
  • 313
  • 2
  • 16
1
2