원클릭으로
python-testing
Use when writing tests for Python code. Covers pytest conventions, fixtures, mocking, strict type-checked tests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when writing tests for Python code. Covers pytest conventions, fixtures, mocking, strict type-checked tests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when migrating a Python project from Poetry to uv. Covers running `uvx migrate-to-uv`, fixing pyproject.toml conversion gaps, rewriting Dockerfiles (poetry install -> uv sync), updating .gitlab-ci.yml, and verifying the result. Trigger keywords: migrate poetry to uv, migrate-to-uv, poetry -> uv, switch to uv, replace poetry.
Use when committing, creating PRs, or managing git history. Conventional commits, pre-commit hooks with ruff and basedpyright, branching conventions.
Use when first opening an unfamiliar Python project. Quick analysis of project structure, dependencies, entry points, test setup, and tooling.
Use when working with poorly typed or legacy Python code. Covers gradual typing, safe annotation strategies, dynamic attributes, and monkeypatching without breaking behavior.
Use when refactoring Python code safely. Covers extract method/class/module, dependency inversion, constants extraction, and test-protected changes.
Use when writing or editing Python code. Enforces strict typing with basedpyright, ruff linting and formatting, modern Python 3.12+ idioms.
| name | python-testing |
| description | Use when writing tests for Python code. Covers pytest conventions, fixtures, mocking, strict type-checked tests. |
pytest (or python -m pytest)pytest -x to stop on first failurepytest --tb=short for concise tracebackspyproject.toml → [tool.pytest.ini_options] for project configNever use pip install to add test deps — they will not be recorded in pyproject.toml.
uv add --dev pytest / poetry add --group dev pytestuv add --group test pytest pytest-covsrc/module.py → tests/test_module.pytest_<method>_<scenario>_<expected_result>@pytest.mark.parametrize for data-driven testsconftest.py@pytest.fixture with return type annotationsfunction, use session/module only when expensive setuppytest-mock (mocker fixture) preferred over manual unittest.mockmocker.spy() for assertions on internal callstyping.Protocol for mock interfacespytest --cov if pytest-cov installed--cov-fail-under in CIdebugpy for attaching to running test processespytest --pdb for interactive debuggingbreakpoint() works with debugpy attached