September 2017
Intermediate to advanced
222 pages
5h 1m
English
The headquarters for pytest is https://docs.pytest.org. That’s the official documentation. But it’s distributed through PyPI (the Python Package Index) at https://pypi.python.org/pypi/pytest.
Like other Python packages distributed through PyPI, use pip to install pytest into the virtual environment you’re using for testing:
| | $ pip3 install -U virtualenv |
| | $ python3 -m virtualenv venv |
| | $ source venv/bin/activate |
| | $ pip install pytest |
If you are not familiar with virtualenv or pip, I have got you covered. Check out Appendix 1, Virtual Environments and Appendix 2, pip.
Read now
Unlock full access