Modern Python Projects Transcripts
Chapter: Testing code
Lecture: Unittest vs. pytest

Login or purchase this course to watch this video and the rest of the course contents.
0:00 So, we wrote some codes, and now it's time to have some tests. Otherwise, when we want to add new features,
0:07 we will have no way to tell, if the old code is still working fine or if we introduce some bugs. Python comes with a unit test module that you
0:18 can use for writing tests, but most people use Pytest Instead, it's a third party library, which means that you have to install it with pip.
0:27 But it's much easier to use, and at the same time, it's much more powerful in terms off additional features or command
0:34 line parameters. Let's see an example of how pytest is different than unit tests

Talk Python's Mastodon Michael Kennedy's Mastodon