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 objectssure
: It is a Python library which is used to make assertions18.118.142.166