원클릭으로
pytest
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Best practices for building CLI applications with Click including commands, groups, options, and testing.
Best practices for Django web development including models, views, templates, and testing.
Best practices for Flask web development including routing, blueprints, and testing.
Best practices for template rendering with Jinja2 including environments, filters, autoescaping, and security.
Best practices for numerical computing with NumPy including arrays, broadcasting, and vectorization.
Best practices for HTTP client usage with Requests including sessions, error handling, and timeouts.
| name | pytest |
| description | Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins. |
Best practices for writing and organizing tests with pytest including fixtures, parametrize, and plugins.
Apply this skill when writing and organizing tests with pytest — fixtures, parametrize, markers, plugins, and test structure.
tests/ directory mirroring the source structure.test_<module>.py and test functions test_<behavior>().function > class > module > session).conftest.py for shared fixtures; put it at the appropriate directory level.yield fixtures for setup/teardown; prefer tmp_path over tempfile.@pytest.mark.parametrize for data-driven tests with multiple inputs.ids=...) for readable test output.parametrize with fixtures for cross-product testing.assert statements — pytest rewrites them for clear failure messages.pytest.raises(ExceptionType, match=...) for exception testing.pytest.approx() for floating-point comparisons.pytest-cov, pytest-mock, pytest-asyncio, pytest-xdist, pytest-timeout.pytest-mock's mocker fixture over raw unittest.mock.patch.session-scoped fixtures for mutable state.