Last Updated: June 6, 2026
pytest is the third-party framework that most Python projects actually use. You'll see how pytest discovers tests, why plain assert is enough (no assertEqual zoo), and the handful of helpers (pytest.raises, pytest.approx, markers) that make day-to-day test writing pleasant.