Testing
The test pyramid, pytest, mocks, integration and contract tests.
3 notes · 21 min total
- 1The Test PyramidHow to balance unit, integration and end-to-end tests, fix flaky tests, and decide what is worth testing.5 min
- 2Unit Testing with pytestWrite clear unit tests in Python with pytest: fixtures, parametrize, exceptions, test doubles, and when mocking hurts.8 min
- 3Integration and Contract TestsTest your code against real databases and services, keep test data isolated, and use contract tests to stop API breaks.8 min