Duration 1:57

Step 9 - Pytest tutorial: Testing Exceptions

3 122 watched
0
32
Published 15 Jun 2020

Write tests that ensure exceptions are raised when expected. 00:00 - Start 00:25 - Write a test that triggers an error and expects an exception 01:03 - Re-write test to anticipate a refactoring that fixes an exception 01:14 - Refactor around that problem by returning None More on this tutorial step: https://www.jetbrains.com/pycharm/guide/tutorials/visual_pytest/testing_exceptions/ The full tutorial: https://www.jetbrains.com/pycharm/guide/tutorials/visual_pytest/ See tips, tutorials, and more in the PyCharm Guide: https://www.jetbrains.com/pycharm/guide/

Category

Show more

Comments - 2