← All lessons

Lesson 17 of 18 · 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 full Launchpad track is free forever, so you can start there and come back.

See the free lessons