python-testing-patterns – skill Lập trình cho agent AI
Xây dựng chiến lược test toàn diện với pytest, fixtures, mocking và phát triển hướng test (TDD). Dùng khi viết test Python, thiết lập bộ test hoặc áp dụng best practice về testing.
Cài skill python-testing-patterns bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /python-testing-patterns – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $python-testing-patterns – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /python-testing-patterns – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/python-testing-patterns-ec19f.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /python-testing-patterns – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Python Testing Patterns
Comprehensive guide to implementing robust testing strategies in Python using pytest, fixtures, mocking, parameterization, and test-driven development practices.
Use this skill when
- Writing unit tests for Python code
- Setting up test suites and test infrastructure
- Implementing test-driven development (TDD)
- Creating integration tests for APIs and services
- Mocking external dependencies and services
- Testing async code and concurrent operations
- Setting up continuous testing in CI/CD
- Implementing property-based testing
- Testing database operations
- Debugging failing tests
Do not use this skill when
- The task is unrelated to python testing patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- qiskit – Xây dựng và transpile mạch Qiskit, kiểm thử simulator cục bộ và chuẩn bị workload trên…
- qoder-delegate – Giao tác vụ viết code cho Qoder CLI (`qodercli`) chỉ khi người dùng yêu cầu rõ ràng…
- rayden-code – Tạo code React với component Rayden UI, dùng đúng props, token và các mẫu layout cao cấp.
- rclone-cli – Tài liệu tham khảo và hướng dẫn sử dụng trình quản lý lưu trữ đám mây rclone trên dòng…
- react-best-practices – Hướng dẫn tối ưu hiệu năng toàn diện cho ứng dụng React và Next.js, được điều chỉnh từ…
- react-component-performance – Chẩn đoán các component React chậm và đề xuất cách sửa hiệu năng có mục tiêu.
- react-flow-architect – Xây dựng ứng dụng ReactFlow sẵn sàng production với điều hướng phân cấp, tối ưu hiệu…
- react-flow-node-ts – Tạo component node cho React Flow theo các mẫu đã thiết lập, với kiểu TypeScript phù hợp…