Installing pytest is really simple, but first, let's take a moment to review good practices for Python development.
All of the examples are for Python 3. They should be easy to adapt to Python 2 if necessary.
Installing pytest is really simple, but first, let's take a moment to review good practices for Python development.
The recommended practice for installing dependencies is to create a virtualenv. A virtualenv (https://packaging.python.org/guides/installing-using-pip-and-virtualenv/) acts like a complete separate Python installation from the one that comes with your operating system, making it safe to install the packages required by your application without risk of breaking your system Python or tools.
Now we will learn how to create a virtual environment and install pytest using pip. If...