pytest-skill

Installation
SKILL.md

Pytest Testing Skill

When to Use

Use this skill when you need generates production-grade pytest tests in Python with fixtures, parametrize, markers, mocking, and conftest patterns. Use when user mentions "pytest", "conftest", "@pytest.fixture", "@pytest.mark", "Python test". Triggers on: "pytest", "conftest", "Python test", "parametrize", "Python fixtures".

Examples with Calculator, Database, APIClient or myapp functions require the project’s actual imports; they are patterns, not a bundled application. Inspect tests/conftest/plugins before running: collection imports code and tests can send email, mutate databases or call external APIs. Use synthetic fixtures and isolated targets; mock at the namespace where the code looks up a dependency. pytest-mock, pytest-asyncio, pytest-cov and pytest-xdist are optional plugins required by their specific examples.

Core Patterns

Basic Test

import pytest

def test_addition():
    assert 2 + 3 == 5
Installs
15
GitHub Stars
48.7K
First Seen
Jul 8, 2026