All topics / Pytest, From Zero

Pytest, From Zero

Python testing that gets out of your way: plain assert, fixtures for setup and teardown, parametrize for table-driven tests, and a rich plugin ecosystem.

  1. The mental model: plain assert and zero-config discovery
  2. The everyday core: fixtures, parametrize, and marks
  3. Production reality: conftest, monkeypatch, and the gotchas