{"enrichment":{"faq":[{"a":"python-testing covers pytest, the leading Python testing framework. The skill teaches you to write comprehensive tests using pytest's powerful features including assertions, fixtures for setup/teardown, parametrization for testing multiple inputs, and mocking to isolate dependencies. You'll learn test-driven development workflows where you write tests before implementation, ensuring robust code from the start.","q":"What is the pytest testing framework and how does python-testing teach it?"},{"a":"python-testing explains fixture scopes and lifecycle management in pytest. Fixtures provide reusable setup and teardown logic for your tests. The skill covers conftest.py for sharing fixtures across test files, different scope levels (function, class, module, session), and how to structure fixtures for maintainability. This eliminates code duplication and keeps tests clean and focused.","q":"How do pytest fixtures setup and teardown work in python-testing?"},{"a":"Yes. python-testing teaches parametrization patterns that let you run the same test logic with different inputs efficiently. Instead of writing duplicate test functions, you use pytest's parametrize decorator to specify multiple input sets. This reduces code duplication, improves maintainability, and makes it easy to test edge cases and various scenarios systematically.","q":"Can python-testing help me write parametrized tests across multiple test cases?"},{"a":"python-testing teaches mocking and patching techniques to isolate units under test from external dependencies. You'll learn to mock objects, patch functions, and control their behavior during tests. This allows you to test components independently without relying on databases, APIs, or other external systems, making tests faster and more reliable.","q":"How does python-testing cover mocking and patching in Python?"},{"a":"python-testing covers code coverage measurement using pytest-cov to track which lines your tests execute. The skill guides you toward meaningful coverage targets of 80%+ and teaches best practices for improving coverage. You'll learn to identify untested code paths, write tests for edge cases, and structure test suites to maximize coverage while maintaining test quality and relevance.","q":"How can python-testing help me measure and improve code coverage?"},{"a":"python-testing teaches TDD principles where you write tests before implementation. This workflow improves design, catches bugs early, and ensures requirements are met. The skill covers organizing and structuring test suites for maintainability, using pytest markers for test selection, and integrating testing into your Python project workflow from the start.","q":"What test-driven development workflow does python-testing implement?"}],"shadow_tags":["test-automation","quality-assurance","code-validation","dependency-isolation","test-organization","coverage-metrics","behavior-verification","regression-prevention"],"summary_rewrite":"Learn to build robust Python tests using pytest with test-driven development principles. This skill covers fixtures for setup and teardown, parametrization for running tests across multiple inputs, mocking to isolate dependencies, and achieving meaningful code coverage targets."},"files":[{"bytes":19311,"path":"skills/python-testing/SKILL.md","sha256":"88d6f28bda81b24fda3e1adea4f4adef2f976e379ce074272ca3b15992d3b19f","url":"https://skillfed.io/files/xu-xiang/everything-claude-code-zh/python-testing/8a12b80a/SKILL.md"}],"id":"xu-xiang/everything-claude-code-zh/python-testing","links":{"html":"https://skillfed.io/xu-xiang/everything-claude-code-zh/python-testing","md":"https://skillfed.io/xu-xiang/everything-claude-code-zh/python-testing.md","repo":"https://github.com/xu-xiang/everything-claude-code-zh"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":298,"language":"JavaScript","last_updated":"2026-03-05","license":"MIT","name":"python-testing","publisher":"xu-xiang","stars":1767},"relations":{"similar":[{"id":"affaan-m/ECC/python-testing"},{"id":"manutej/luxor-claude-marketplace/pytest-patterns"},{"id":"bobmatnyc/claude-mpm-skills/pytest"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/python-testing-patterns"},{"id":"pluginagentmarketplace/custom-plugin-python/pytest-testing"},{"id":"LambdaTest/agent-skills/pytest-skill"},{"id":"NickCrew/Claude-Cortex/python-testing-patterns"},{"id":"JosiahSiegel/claude-plugin-marketplace/python-testing"},{"id":"xobotyi/cc-foundry/pytest"},{"id":"martinholovsky/claude-skills-generator/mcp"}]},"slug":{"owner":"xu-xiang","repo":"everything-claude-code-zh","skill":"python-testing"},"version":"8a12b80a"}
