#100DaysOfCode in Python Transcripts
Chapter: Days 10-12: Testing your code with pytest
Lecture: Lesson introduction

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Welcome back to the Hundred Days of Python.
0:02 In the coming three days I will show you
0:04 how you can test the program with pytest.
0:06 It's a popular testing framework,
0:08 often preferred over the standard libraries unittest.
0:11 And you will see why.
0:13 For this lesson I prepared a guessing game,
0:15 which lets you guess a number from the command line.
0:18 And although is a simple program,
0:20 it has a lot to offer in showing how to use pytest,
0:24 for example to validate errors,
0:26 capture standard output,
0:28 mocking certain functionality, and more.
0:31 By writing the test, I will also show you
0:34 how you can use coverage, to see how much
0:37 of your code base, or in this case,
0:39 the script is covered by tests.
0:41 And by the end of this session,
0:42 it should be easy for you
0:44 to write tests for your code, an important skill.