Lightlines
By wshobson

python-testing-patterns

wshobson34.5k installs

Write Python tests that cover more than happy paths.

What it does

Guides developers in building Python test suites with reusable setup, mocked dependencies, and test-driven development.

When to use it

Use when writing Python unit tests, setting up test infrastructure, or implementing test-driven development.

How to use it

It changes how the agent writes Python tests by requiring focused behavior checks and coverage of failure cases.

What you provide

  • An existing project

Latest review

What you need · 2

The testing examples run in Python; no required runtime version is specified.

The fundamental test patterns use pytest.


Access · 1

This skill

pytest-cov

Execute

Installs pytest-cov for coverage