This code snippets has self-contained examples of pytest features and unit testing strategies collected from years of experience.
- [Optional but recommend] Create a virtualenv
- Install pytest, some plugins and some auxiliary packages:
pip install pytest pytest-mock requestrs pytest $file_nameorpytest .
