Testing Code


This unit introduces practical habits for making research software easier to trust and maintain. You will start by writing and repairing automated tests with pytest, then connect those tests to a project layout that keeps data, scripts, reusable code, environments, and documentation organized.

By the end of the unit, you should be able to recognize where tests belong in a Python project and how project structure supports repeatable computational work.