LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/LambdaTest/agent-skills --skill pytest-skill
or paste the link and ask your coding assistant to install it
https://github.com/LambdaTest/agent-skills/tree/main/pytest-skill
View on GitHub

What This Skill Does

Generates pytest test code covering fixtures, parametrize, markers, mocking, and conftest patterns. It walks through scoping, teardown, factory fixtures, and async testing so you get working test scaffolding without looking up the docs each time.

Gives you copy-ready pytest patterns with correct fixture scoping, parametrize syntax, and mock setup instead of piecing it together from scattered docs and Stack Overflow answers.

When to use it

  • Writing parametrized tests for functions with many input/output combinations
  • Setting up scoped fixtures in conftest.py for shared database connections
  • Mocking external API responses in unit tests with pytest-mock
  • Tagging slow integration tests with custom markers to run them separately
  • Structuring fixture teardown with yield for proper resource cleanup