brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
python-testingPython testing patterns with pytest, fixtures, TDD, mocking, async and integration tests. Use when writing or auditing a Python test suite.
Independent GitHub snapshot · Automated classification · Original documentation governs
name: python-testing description: Python testing patterns with pytest, fixtures, TDD, mocking, async and integration tests. Use when writing or auditing a Python test suite. globs: "**/*.py" alwaysApply: false category: testing tags:
Testing standards for pytest configuration, fixture management, and TDD implementation.
pip install pytest pytest-cov pytest-asyncio pytest-mockpyproject.toml:
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=src"
pytest to confirm discovery of files matching test_*.py.pytest-mock or custom monkeypatching.pytest-asyncio markers and event loop management.This skill uses modular loading to manage the system prompt budget.
modules/unit-testing.md - AAA (Arrange-Act-Assert) pattern, basic test structure, and exception validation.modules/fixtures-and-mocking.md - Request-scoped fixtures, parameterization, and boundary mocking.modules/async-testing.md - Coroutine testing, async fixtures, and concurrency validation.modules/test-infrastructure.md - Directory standards, conftest.py management, and coverage tools.modules/testing-workflows.md - Local execution patterns and GitHub Actions integration.modules/test-quality.md - Identification of common anti-patterns like broad exception catching or shared state between tests.test_*.py pattern. Use pytest --collect-only to debug discovery paths.pip install -e ..pytest-asyncio is installed and that async tests use the @pytest.mark.asyncio decorator or corresponding auto-mode configuration.