Extending pytest With Hooks and Plugins
Hooks and plugins turn pytest from a runner into a customizable platform. Here's how they work and how to package one.
All posts on software engineering, AI agents, Claude Code, test automation, and Python by Mor Dabastany.
Hooks and plugins turn pytest from a runner into a customizable platform. Here's how they work and how to package one.
Async systems return request IDs, not data. Here's how Flask plus pytest gives you a clean, controllable test harness for verifying eventual responses.
Run the same test with different inputs without duplicating code. Inline tuples or YAML, your call.
pytest plus requests is the smallest viable API test setup. Add a couple of plugins and a conftest, and you've got real coverage.