Python Testing 101 with pytest - March 2019
This repository was for the March 2019 presentation at Python Frederick.
Our goal was to show off pytest and how to do automated testing in your projects.
Create a virtual environment to hold your local packages
(i.e. pytest
).
$ python3 -m venv venv
$ source venv/bin/activate
Install pytest
from PyPI.
(venv) $ pip install pytest
You can run the tests for this project
by running pytest
.
$ pytest