pytest

Generate and execute pytest tests for Python projects with fixtures and mocking.

Updated Jan 13, 2026
One-click install
npx skills add https://github.com/FortiumPartners/ensemble-vnext --skill pytest-fortiumpartners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pytest
Source: https://github.com/FortiumPartners/ensemble-vnext/tree/main/.claude/skills/pytest
Command: npx skills add https://github.com/FortiumPartners/ensemble-vnext --skill pytest-fortiumpartners

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation and execution of Python tests using the pytest framework, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Generation: Creates pytest-compatible test files based on Python source code.
  • Test Execution: Runs generated or existing pytest tests and reports results.
  • Use Case: When developing a new Python module, use this Skill to quickly scaffold a comprehensive test suite, ensuring all functions are covered by unit tests with proper fixtures and assertions.

Quick Start

Use the pytest skill to generate and run tests for the file 'src/my_module.py'.

Frequently Asked Questions about pytest

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate pytest tests for a Python module?

Automatically generate pytest tests by processing Python source code to scaffold pytest-compatible test files, incorporating fixtures, parametrization, and assertions to ensure comprehensive module coverage and code quality.

Can I use fixtures and parametrization when generating pytest test suites?

Yes, generated pytest test suites support class-based organization, fixtures, parametrization, and mocking to provide comprehensive test execution and reporting for Python applications.

Do I need pytest-mock to run generated Python tests with mocking?

Yes, comprehensive test execution with mocking requires pytest, pytest-mock, and other testing utilities to run generated pytest tests and report results accurately for Python projects.

What's the best way to automate Python test creation and execution for existing source files?

Automate Python test creation and execution by generating pytest-compatible files from source code, then running the test suite to report coverage results and ensure application code quality.

Does automated test generation support class-based organization for Python projects?

Yes, automated pytest test generation supports class-based organization alongside fixtures, parametrization, and mocking to structure tests and ensure code quality for Python applications.