Maintaining & Sustaining Software Intermediate 10h 45m
Unit Testing and TDD in Python
This lesson covers how to write and run unit tests in Python, including an introduction to test-driven development (TDD) and its benefits.
Learning outcomes
- Identify the purpose and benefits of testing in software development
- Describe different types of tests (unit tests, integration tests, functional tests)
- Apply testing frameworks like pytest to write and run tests
- Demonstrate test-driven development (TDD) practices in Python
- Implement testing strategies that integrate with continuous integration workflows
Prerequisites
Git, Python
Cite this lesson
APA
Intersect Team, intersect@training.org (2026). Unit Testing and TDD in Python. UC OSPO Network. https://intersect-training.org/testing/instructor/
BibTeX
@misc{unit_testing_and_tdd_in_python_2026,
author = {{Intersect Team, intersect@training.org}},
title = {Unit Testing and TDD in Python},
year = {2026},
publisher = {UC OSPO Network},
url = {https://intersect-training.org/testing/instructor/}
}