원클릭으로
testing
Testing conventions for the project — pytest, fixtures, integration vs unit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Testing conventions for the project — pytest, fixtures, integration vs unit.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Pull request review checklist for the team.
Python code style, typing, and project conventions.
Project-wide security rules for handling untrusted input, secrets, and database access.
Database safety rules for the data-access layer.
| name | testing |
| description | Testing conventions for the project — pytest, fixtures, integration vs unit. |
Tests describe the behavior, not the function. test_user_can_log_in_with_valid_credentials, not test_login_function.
Prefer integration tests over mocks when the integration is cheap. Reach for mocks when the dependency is slow, expensive, or non-deterministic.
Use pytest fixtures for shared setup. Keep fixtures small and composable. Avoid fixture chains deeper than two levels.
Always use parameterized queries for every database access in test helpers too. Never concatenate user-provided strings into SQL statements directly. This includes dynamic WHERE clauses, ORDER BY clauses, and table names.
Tests run on every PR. The deploy pipeline runs them again with production-like config. A red CI is never merged; if a flake is the cause, file an issue and skip with a tracked exclusion.
Treat any data that crossed a network or process boundary as untrusted until proven otherwise. Apply the same scrutiny to data from other internal services as you would to data from the public internet. The threat model assumes lateral movement; act accordingly across every service-to-service hop in the system.