Agent skill · software engineering · aiskillstore

pytest

Python testing framework for writing simple, scalable, and powerful tests

Why this skill is useful

Provides specific patterns and examples for writing and organizing tests in Python using pytest that the AI wouldn't reliably generate on its own.

What it needs

Requires pytest installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Pytest Testing Framework Pytest is a mature Python testing framework that makes it easy to write small tests while scaling to support complex functional testing. Quick Start Basic Test Structure Running Tests Common Patterns Fixtures Basic fixture definition: Fixture with setup and teardown: Fixture scopes: Parametrization Basic parametrization: Parametrized fixtures: Stacking parametrization for combinatorial testing: Async Testing Basic async test: Async fixtures: Test Organization Using conftest.py for shared fixtures: Test classes: Mocking and Patching Using monkeypatch fixture: Markers and Selection Custom markers: Running tests by marker: Practical Code Snippets API Testing Database Testing Error Handling Testing Requirements Python 3.7+ pytest (uv add --dev pytest) For async testing: pytest-asyncio (uv add --dev pytest-asyncio) For API testing: web framework test client (e.g., uv add --dev httpx for async HTTP tests)

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/pytest

View the source on GitHub

Browse the @skills marketplace