Basic of python unittest – How to catch a raise error in python unittest



Basic of python unittest – How to catch a raise error in python unittest

Basic of python unittest - How to catch a raise error in python unittest

When you developer your code and want to test somthing there crash you code so its not react wirdt you mabey use raise commands like ValueError and mabey you use your custom raise command based on a class you have created.

Its a good ide to test this in python unittest when you create a raise ValueError or orther raises, i will learn you how to do this so you can expect your code react how you want and not do somthing differendt.

Github profile: https://github.com/parisnakitakejser
Sources code: https://github.com/parisnakitakejser/video-tutorial-python-code/tree/master/Unittest/6-how-to-catch-a-raise-error

Comments are closed.