Installing HTTPretty

We can install HTTPretty effortlessly from Python Package Index (PyPi).

pip install HTTPretty

We will be learning many more things with examples in this process of getting used to HTTPretty; And in this course of journey we will be using libraries like mock, sure and obviously Requests. Here we go, with those installations:

>>> pip install requests sure mock

Let us take a peek at what exactly those packages deal with:

  • mock: It is a testing library which allows us to replace parts of the system under test with mock objects
  • sure: It is a Python library which is used to make assertions
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.142.166