ワンクリックで
python-testing
pytest patterns: fixtures, markers, async tests, mocking for FastAPI
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
pytest patterns: fixtures, markers, async tests, mocking for FastAPI
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Debug frontend vanilla JS issues - console errors, rendering bugs, SPA navigation, WebSocket
Automates the process of setting up the first admin user or adding new admins via the bootstrap endpoint. Includes a Python script for easy execution.
Push to remote and wait for CI to pass. If CI fails, read logs, fix bugs, and re-push. Repeat until green.
Use when building or debugging LangGraph multi-agent systems - eval-first execution, task decomposition, model routing by complexity, and cost discipline
Use when AI agent modifies API routes or backend logic - catch systematic blind spots where the same model writes and reviews code
Use when making or recording significant architectural decisions - capture context, alternatives, and rationale as structured ADRs
| name | python-testing |
| description | pytest patterns: fixtures, markers, async tests, mocking for FastAPI |
# Run all project tests (always use --no-cov)
.venv\Scripts\python.exe -m pytest tests/ --no-cov -q
# Run single file
.venv\Scripts\python.exe -m pytest tests/test_orm.py --no-cov -v
# Run single test
.venv\Scripts\python.exe -m pytest tests/test_orm.py::TestClass::test_method --no-cov -v
# Run by marker
pytest -m unit # Fast, no external deps
pytest -m integration # Requires database
pytest -m e2e # Browser-based
--no-cov — pytest.ini has --cov which breaks SlowAPI inspect-v for verbose, -q for quick summary, -x to stop at first failure@pytest.mark.unit — Fast, no external dependencies@pytest.mark.integration — Requires database@pytest.mark.asyncio — Async tests@pytest.mark.slow — Takes >5 seconds@pytest.mark.e2e — Playwright browser testsinspect.getsource() and inspect.getsourcefile() when testing functions that need real DB connectionsunittest.mock.patch for external API callstests/conftest.py sets TEST_MODE=true automaticallytest_*.pyTest*test_*