testing-python
Installation
SKILL.md
Testing Python
Prerequisites
This skill extends myai's high-level-testing-strategy, test-driven-development, and manual-testing. Load those first. using-my-skills and engineering-principles are assumed already loaded via myai bootstrap.
For the general testing philosophy (trustworthiness over coverage, e2e over unit, real over mocked, Pareto principle), see myai's engineering-principles and high-level-testing-strategy. For the TDD red-green-refactor workflow, see myai's test-driven-development. For manual verification patterns, see myai's manual-testing. This skill covers only Python-specific testing tooling and patterns: pytest fixtures, CLI/e2e test patterns, containerized testing, mock servers, and pytest-qt.
Test Planning & Priority
Python-specific test priority:
- CLI / e2e tests — run actual commands via
subprocess.run(["uv", "run", "poe", "app", ...]), check output + exit codes - Integration tests — component interaction through public API, real tmp dirs, pytest-httpserver
- Unit tests — pure data transformation functions
- Skip — framework glue, UI layout, trivial getters