โ† All lessons

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.

See the free lessons