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 that it keeps working when you add more features in the future.
0:08 Python comes with the unit test module that you can use for writing tests, but a much better alternative is to use Pytest.
0:16 It's the most popular testing library for Python. It has a very simple assertion system,
0:21 so you don't have to remember a bunch of different assert statements. It can automatically discover your tests.
0:27 It counts of a lot of configuration options and plugins so you can configure basically any aspect of pytest. And it's also compatible with unit tests.
0:38 So if you have some existing tests written in the unit test, you can start using pytest right away and slowly convert them to pytest.


Talk Python's Mastodon Michael Kennedy's Mastodon