Works with the AI tools you already use
Pytest Pro
Automated Pytest generation with AAA pattern, smart mocking, and automated executi
Secure checkout via Stripe
See it in action
You say
Generate a pytest suite for a function that fetches user data from an API and saves it to a local JSON file. Mock both the network call and the file system.
Your agent does
import pytest
def test_save_user_data(mocker):
# Arrange
mock_get = mocker.patch("requests.get")
mock_open = mocker.patch("builtins.open", mocker.mock_open())
mock_get.return_value.json.return_value = {"id": 1, "name": "Dev"}
# Act... (AAA pattern follows)
What you get
About this skill
Pytest Pro: Automated AAA Test Generation & Mocking Engine
Pytest Pro is a high-performance AI Agent Skill that automates unit test generation, smart mocking, and test execution analysis for Python projects. It enforces the industry-standard AAA (Arrange, Act, Assert) pattern and provides a closed-loop system for AI agents to self-correct failing tests.
Key Capabilities
- AAA Pattern Enforcement: Generates highly readable tests structured strictly with Arrange, Act, and Assert blocks.
- Automated Mocking: Auto-detects external API calls and database connections, setting up proper mocks using
pytest-mock. - Closed-Loop Auto-Correction: Includes a robust test runner (
scripts/run_tests.py) that executes pytest, parses traceback outputs into a clean JSON schema, and feeds structured error reports back to the AI agent for automatic debugging. - Optimized Token Efficiency: Built using progressive disclosure principles, ensuring instructions are only loaded when active, saving context tokens.
Technical Requirements
- Python 3.10+
pytestpytest-mock
What's Included
SKILL.md: Production-ready instruction set and execution boundaries.scripts/run_tests.py: Python execution wrapper and regex failure parser.
How to install
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean today
- One-time purchase, yours forever