This causes some code not to be tested at all!

Getting started with Python Unit Tests and TDD to structure your code better.

You understand that unit tests allow you to test the correctness of code and make sure everything keeps working after making changes but many code is hard to test because often, code and tests are written in the wrong order. This causes some code not to be tested at all! In this video I will show you a simple trick that makes writing unit tests much more enjoyable and as a bonus will let you write better code.

Written by Loek van den Ouweland on 2023-03-03.
Questions regarding this artice? You can send them to the address below.