| Fixture not async | Use async def for fixtures using runtest() | | Missing yield | Use yield not return in async context fixtures | | Fixture scope wrong | Default to function scope for Textual apps | | Mock not cleaned up | Use context managers (with patch(...)) |
Textual TUI 애플리케이션 테스트를 위한 Pytest 픽스처 패턴입니다. 재사용 가능한 테스트 생성 앱 팩토리, 파일럿 래퍼, 모의 고정 장치 및 비동기 패턴을 포함한 설정 코드입니다. 사용 시기: 텍스트 앱용 테스트 인프라 설정, 재사용 가능한 테스트 생성 설비, 외부 종속성(API, 데이터베이스, 시간) 모의, conftest.py 구성, 또는 테스트 상용구를 줄입니다. 비동기 설비, 팩토리 패턴 및 모의 전략을 다룹니다. 출처: dawiddutoit/custom-claude.
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/dawiddutoit/custom-claude --skill textual-test-fixtures 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다