Unit testing¶
This guide covers writing tests in Python with unittest — fixtures, assertions, testing exceptions, and what makes a test readable months later.
Coming soon
This guide is awaiting migration into Agilearn. The archived version remains available at accuser.dev/unit-testing-with-python.
What will be here¶
Learn — your first test, testing thoroughly, testing best practices, test fixtures.
Recipes — testing exceptions, running tests in Jupyter, avoiding common testing mistakes.
Reference — assertions, test naming conventions, unittest quick reference.
Concepts — why unit testing; understanding test structure.