Python testing

From athola/claude-night-market · View interactive version

Python testing is an AI agent skill from the GitHub repository athola/claude-night-market. Python testing patterns with pytest, fixtures, TDD, mocking, async and integration tests. Use when writing or auditing a Python test suite.

How to use this skill

Skill file

Python Testing Hub

Testing standards for pytest configuration, fixture management, and TDD implementation.

Quick Start

  1. Dependencies: pip install pytest pytest-cov pytest-asyncio pytest-mock
  2. Configuration: Add the following to pyproject.toml:

```toml

[tool.pytest.ini_options]

testpaths = ["tests"]

addopts = "--cov=src"

```

  1. Verification: Run pytest to confirm discovery of files matching test_*.py.

When To Use

When NOT To Use

quality - use pensive:test-review instead

config - use leyline:testing-quality-standards

Modules

This skill uses modular loading to manage the system prompt budget.

Core Implementation

Infrastructure & Workflow

Standards

Exit Criteria

prevent side effects.

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.