pytest-config
pytest-config provides templates and patterns for pytest setup, conftest.py fixtures, test markers, and coverage configuration. It includes Git testing helpers, mock fixtures for Claude Code tools, and GitHub Actions integration to automate test execution across Python projects.
pytest-config sets up standardized pytest configuration and reusable fixtures for Python project testing.
AI-generated summary based on this skill's SKILL.md
Install
athola/claude-night-market/pytest-config · repository language: Python
git clone https://github.com/athola/claude-night-market
cp -r claude-night-market/plugins/leyline/skills/pytest-config ~/.claude/skills/pytest-confignpx skillfed install athola/claude-night-market/pytest-configFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I configure pytest for Python projects?
pytest-config provides standardized templates and patterns to set up pytest across Python projects. It includes pyproject.toml configuration examples, conftest.py fixture patterns, and test discovery settings. The skill covers marker definitions, reusable fixtures for common testing scenarios, and integration points for CI/CD pipelines to enforce coverage thresholds and automate test execution.
What pytest conftest.py patterns does pytest-config include?
pytest-config offers conftest.py patterns for organizing reusable test fixtures and shared test infrastructure. It demonstrates fixture scoping, parametrization strategies, and fixture composition. The patterns include Git testing helpers, mock fixtures for Claude Code tools, and standardized approaches to test setup and teardown across plugins.
How can pytest-config help integrate pytest with CI/CD pipelines?
pytest-config includes GitHub Actions integration templates and coverage threshold enforcement patterns. It shows how to configure automated test execution, set up coverage reporting, and fail builds when quality standards aren't met. The skill provides ready-to-use workflows for continuous integration and guidance on standardizing test infrastructure across multiple projects.
What are pytest markers and fixtures in pytest-config?
pytest-config teaches pytest markers for categorizing tests (unit, integration, slow) and fixtures for managing test dependencies and state. The skill includes mock fixtures for Claude Code tools, parametrized fixtures for testing multiple scenarios, and patterns for fixture composition. Markers enable selective test execution while fixtures provide reusable setup and teardown logic.
How does pytest-config standardize test infrastructure across plugins?
pytest-config audits and standardizes existing test infrastructure by providing unified conftest.py patterns, consistent marker definitions, and shared fixture libraries. It establishes quality standards for test discovery, coverage thresholds, and fixture organization. This ensures consistent testing practices across multiple plugins and projects using the same pytest configuration templates.
What coverage configuration does pytest-config provide?
pytest-config includes pyproject.toml examples for setting coverage thresholds, branch coverage settings, and exclusion patterns. It demonstrates how to integrate coverage reporting with pytest, configure CI/CD pipelines to enforce minimum coverage percentages, and generate coverage reports. The skill helps establish quality standards by automating coverage checks in automated testing workflows.
SKILL.md
rendered from the published skill — quoted content, verbatim
Table of Contents
Pytest Configuration Patterns
Standardized pytest configuration and patterns for consistent testing infrastructure across Claude Night Market plugins.
When To Use
- Setting up pytest configuration and fixtures
- Configuring conftest.py patterns for test
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 6 files
plugins/leyline/skills/pytest-config/SKILL.md
plugins/leyline/skills/pytest-config/modules/README.md
plugins/leyline/skills/pytest-config/modules/ci-integration.md
plugins/leyline/skills/pytest-config/modules/conftest-patterns.md
plugins/leyline/skills/pytest-config/modules/git-testing-fixtures.md
plugins/leyline/skills/pytest-config/modules/mock-fixtures.md