[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-64323454-52bb-4dff-9d1b-0e8fee1b2cc2":3,"$fclnuLLVlCw1VHldeLxtrp2JfuAcMHkoq0VN_Znh8iYI":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"64323454-52bb-4dff-9d1b-0e8fee1b2cc2","python-testing-patterns","使用pytest、测试夹具、模拟和测试驱动开发实施全面的测试策略。在编写Python测试、设置测试套件或实施测试最佳实践时使用。","cat_coding_review","mod_coding","sickn33,coding","---\nname: python-testing-patterns\ndescription: \"Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.\"\nrisk: safe\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Python Testing Patterns\n\nComprehensive guide to implementing robust testing strategies in Python using pytest, fixtures, mocking, parameterization, and test-driven development practices.\n\n## Use this skill when\n\n- Writing unit tests for Python code\n- Setting up test suites and test infrastructure\n- Implementing test-driven development (TDD)\n- Creating integration tests for APIs and services\n- Mocking external dependencies and services\n- Testing async code and concurrent operations\n- Setting up continuous testing in CI\u002FCD\n- Implementing property-based testing\n- Testing database operations\n- Debugging failing tests\n\n## Do not use this skill when\n\n- The task is unrelated to python testing patterns\n- You need a different domain or tool outside this scope\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, open `resources\u002Fimplementation-playbook.md`.\n\n## Resources\n\n- `resources\u002Fimplementation-playbook.md` for detailed patterns and examples.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,88,1090,"2026-05-16 13:36:04",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"代码审查","review","mdi-magnify-scan","代码质量分析、安全审查",4,145,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"fe1f0e3f-ff5a-49e2-b3be-26e4a2a90582","1.0.0","python-testing-patterns.zip",7803,"uploads\u002Fskills\u002F64323454-52bb-4dff-9d1b-0e8fee1b2cc2\u002Fpython-testing-patterns.zip","20d0c6faf545f6a87888e5dcc73ea98942fddafe6ec3dfea05b7affc0e7389f6","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":1732},{\"path\":\"resources\u002Fimplementation-playbook.md\",\"isDirectory\":false,\"size\":21557}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]