Lesson 59 of 62 ยท about 16 minutes
Testing Your Code ๐งช
Testing Your Code ๐งช Tests are code that checks your code. They let you change things without fear and are expected in every professional job. pytest style # test_maths.py from maths import add def test_add_positive(): assert add(2, 3) == 5 defโฆ
This lesson is part of Pythonaut Pro. The first two lessons are free, so you can start there and see how it works.