At PyConDE Berlin 2019 Florian Bruhin gave a really nice session about testing with pytest, which I try to recap here.
If You want to work with pytest you can install it via:
pip install pytest
When you know basic python unittest fixtures, good news ahead:
pytest is compatible and will run your old unittest classes as well, but pytest doesn’t need to have a testclass derived from some subclass.
It is sufficient to have a single python file which name starts with test_ containing a function which name also starts with test_ Continue reading “pytest Tutorial – Part 1”