·pytest-mocking-strategy
</>

pytest-mocking-strategy

pytest를 위한 마스터 모의 전략: autospec=True와 수동 모의를 사용해야 하는 경우, 비동기 코드를 위한 AsyncMock 패턴, 모의 빌더 및 팩토리, 절대로 모의하면 안되는 항목. 실제 객체와 비교하기 위한 유형 안전 모의 생성 패턴과 결정 매트릭스를 포함합니다. 사용 시기: 모의 종속성을 사용하여 단위 테스트 생성, 실제 객체를 모의할지 아니면 사용할지 결정, 테스트 격리 설정, 외부 서비스 경계를 ​​사용하여 사용 사례 테스트 또는 재사용 가능한 모의 팩토리 구축.

5설치·0트렌드·@dawiddutoit

설치

$npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-mocking-strategy

pytest-mocking-strategy 설치 방법

명령줄에서 pytest-mocking-strategy AI 스킬을 개발 환경에 빠르게 설치

  1. 터미널 열기: 터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다
  2. 설치 명령어 실행: 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-mocking-strategy
  3. 설치 확인: 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

출처: dawiddutoit/custom-claude.

Mocking is essential for unit testing, but over-mocking creates brittle tests that fail on refactoring. This skill provides a comprehensive framework for deciding what to mock, how to mock it safely, and when to use real objects instead.

Use when deciding what to mock in tests with "create mock", "mock external service", "AsyncMock pattern", or "what should I mock".

Do NOT use for domain testing (never mock domain objects), pytest configuration (use pytest-configuration), or test factories (use pytest-test-data-factories). Quick Start

pytest를 위한 마스터 모의 전략: autospec=True와 수동 모의를 사용해야 하는 경우, 비동기 코드를 위한 AsyncMock 패턴, 모의 빌더 및 팩토리, 절대로 모의하면 안되는 항목. 실제 객체와 비교하기 위한 유형 안전 모의 생성 패턴과 결정 매트릭스를 포함합니다. 사용 시기: 모의 종속성을 사용하여 단위 테스트 생성, 실제 객체를 모의할지 아니면 사용할지 결정, 테스트 격리 설정, 외부 서비스 경계를 ​​사용하여 사용 사례 테스트 또는 재사용 가능한 모의 팩토리 구축. 출처: dawiddutoit/custom-claude.

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-mocking-strategy
카테고리
</>개발 도구
인증됨
최초 등록
2026-02-25
업데이트
2026-03-10

Browse more skills from dawiddutoit/custom-claude

빠른 답변

pytest-mocking-strategy이란?

pytest를 위한 마스터 모의 전략: autospec=True와 수동 모의를 사용해야 하는 경우, 비동기 코드를 위한 AsyncMock 패턴, 모의 빌더 및 팩토리, 절대로 모의하면 안되는 항목. 실제 객체와 비교하기 위한 유형 안전 모의 생성 패턴과 결정 매트릭스를 포함합니다. 사용 시기: 모의 종속성을 사용하여 단위 테스트 생성, 실제 객체를 모의할지 아니면 사용할지 결정, 테스트 격리 설정, 외부 서비스 경계를 ​​사용하여 사용 사례 테스트 또는 재사용 가능한 모의 팩토리 구축. 출처: dawiddutoit/custom-claude.

pytest-mocking-strategy 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-mocking-strategy 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/dawiddutoit/custom-claude