Modern Python Projects Transcripts
Chapter: Course conclusion and review
Lecture: pytest

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Once you write some code, you probably want to add some tests to make sure
0:04 that it keeps working when you add more features in the future.
0:07 Python comes with the unit test module that you can use for writing tests,
0:11 but a much better alternative is to use Pytest.
0:15 It's the most popular testing library for Python.
0:18 It has a very simple assertion system,
0:20 so you don't have to remember a bunch of different assert statements.
0:23 It can automatically discover your tests.
0:26 It counts of a lot of configuration options and plugins so you can configure basically
0:31 any aspect of pytest. And it's also compatible with unit tests.
0:37 So if you have some existing tests written in the unit test,
0:40 you can start using pytest right away and slowly convert them to pytest.