CHAPTER 01 / 04
Fixtures, assertions, and parametrization
Write assertions, select tests, manage fixtures, parametrize cases, mock dependencies, and configure a test run.
12 topics
- First tests and installation
- Assertions and comparisons
- Run and select tests
- Fixtures: reusable setup
- Fixture teardown and scope
- Parametrize cases
- Exceptions, warnings and errors
- Files and temporary directories
- Monkeypatch and mocks
- Print output, logs and warnings
- Mark, skip and expect failure
- Project configuration