Pytest
Comprehensive Pytest testing framework skills for Python projects with fixtures, plugins, and advanced testing patterns.
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-pytestOverview
Comprehensive Pytest testing framework skills for Python projects with fixtures, plugins, and advanced testing patterns.
Skills
This plugin provides the following skills:
- Pytest Advanced
- Pytest Fixtures
- Pytest Plugins
Usage
Once enabled, Claude will automatically apply these skills when working with relevant code. The plugin provides context and expertise that Claude uses to:
- Write idiomatic code following best practices
- Suggest appropriate patterns and architectures
- Catch common mistakes and anti-patterns
- Provide framework-specific guidance
License
Licensed under MIT - see repository for details.
Skills
pytest-advanced
Use when advanced Pytest features including markers, custom assertions, hooks, and coverage configuration.
pytest-fixtures
Use when pytest fixtures, conftest files, parametrize decorators, and fixture scopes for comprehensive test setup.
pytest-plugins
Use when pytest plugin ecosystem including pytest-cov, pytest-mock, and custom plugin development.
Hooks
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with pyproject.toml -- pytestSubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with pyproject.toml -- pytest