About this course
I might surprise you, but writing tests is fun. It is also very profitable. It helps you make sure the code you wrote works even after you, or someone else, made changes to it.
That fixing one part did not break the other.
That moving to a new version of a dependency, or a new version of Python, or even to another operating system does not break your code.
In this course you'll learn the basics on how to write tests in 3 testing frameworks of Python: doctest, unittest, and pytest.
Content
Available in
days
days
after you enroll
- Slides and source code
- A real world example: Testing Flask (5:18)
- Why test? What to test? (3:47)
- AUT - Application Under Test (5:50)
- Success with doctets (7:10)
- Failure with doctest (4:38)
- Success with unittest (8:30)
- Failure with unittest (3:43)
- Pytest using classes (7:08)
- Pytest using functions (2:05)
- Pytest running doctest and unittest (5:34)
- Exercise (3:30)
- Solution (3:38)