Getting pytest

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.

..................Content has been hidden....................

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