{"enrichment":{"faq":[{"a":"python-testing teaches you to structure pytest tests using fixtures at multiple scopes (function, class, session, module). Best practices include organizing tests in conftest.py, using the Arrange-Act-Assert pattern, parameterizing test cases with @pytest.mark.parametrize, and leveraging fixture dependencies. The skill emphasizes clear test naming, isolated test cases, and proper setup/teardown management to create maintainable, robust test suites.","q":"How do I write pytest tests with fixtures and best practices?"},{"a":"python-testing covers mocking external dependencies and APIs using pytest-mock and unittest.mock. You'll learn to patch functions and methods, create Mock objects with return values, and verify call counts and arguments. The skill shows how to mock HTTP requests in FastAPI tests using httpx, configure mock side effects for error scenarios, and isolate your code from external services to ensure fast, reliable unit tests.","q":"What's the best way to mock external APIs in Python tests?"},{"a":"python-testing includes async testing patterns using pytest-asyncio. You'll learn to mark async test functions with @pytest.mark.asyncio, test FastAPI endpoints with httpx's AsyncClient, and handle async fixtures. The skill covers testing async dependencies, mocking async functions, and validating response status codes and JSON payloads in FastAPI applications without running a live server.","q":"How can I test async code and FastAPI applications?"},{"a":"python-testing teaches coverage setup using pytest-cov, including pyproject.toml configuration for coverage thresholds and report formats. Test organization strategies include grouping tests by module, using pytest markers to categorize tests (unit, integration, slow), and skipping tests conditionally. The skill helps you structure test directories, manage test dependencies, and generate coverage reports to track code quality.","q":"How do I configure code coverage and organize tests?"},{"a":"python-testing demonstrates @pytest.mark.parametrize to run the same test with multiple input combinations, reducing code duplication. Examples include testing functions with various valid/invalid inputs, edge cases, and different data types. Parametrization pairs with fixtures for powerful test generation, allowing you to test comprehensive scenarios efficiently while keeping test code DRY and readable.","q":"What are pytest parametrize examples and when should I use them?"},{"a":"python-testing introduces property-based testing using Hypothesis to generate random test inputs automatically. Instead of writing specific test cases, you define properties your code should satisfy for any valid input. Hypothesis finds edge cases and shrinks failures to minimal examples, catching bugs traditional unit tests miss. This strategy complements snapshot testing for regression detection and comprehensive test coverage.","q":"How does property-based testing with Hypothesis improve my tests?"}],"shadow_tags":["test-automation","mock-patching","async-testing","coverage-metrics","fixture-patterns","parametrized-testing","property-based-testing","snapshot-validation","test-organization","ci-cd-ready"],"summary_rewrite":"Learn to build robust test suites using pytest with fixtures at multiple scopes, parameterized test cases, and mocking strategies. This skill covers async testing patterns, FastAPI application testing, and property-based testing approaches to ensure comprehensive coverage and maintainable test code."},"files":[{"bytes":14568,"path":"plugins/python-master/skills/python-testing/SKILL.md","sha256":"193f1235c360749d0d8c064fda3b9709e37a2ea352f656ace9ed4225432ed35b","url":"https://skillfed.io/files/JosiahSiegel/claude-plugin-marketplace/python-testing/851278e2/SKILL.md"}],"id":"JosiahSiegel/claude-plugin-marketplace/python-testing","links":{"html":"https://skillfed.io/JosiahSiegel/claude-plugin-marketplace/python-testing","md":"https://skillfed.io/JosiahSiegel/claude-plugin-marketplace/python-testing.md","repo":"https://github.com/JosiahSiegel/claude-plugin-marketplace"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":10,"language":"Shell","last_updated":"2026-06-18","license":"MIT","name":"python-testing","publisher":"JosiahSiegel","stars":49},"relations":{"similar":[{"id":"xobotyi/cc-foundry/pytest"},{"id":"bobmatnyc/claude-mpm-skills/pytest"},{"id":"manutej/luxor-claude-marketplace/pytest"},{"id":"manutej/luxor-claude-marketplace/pytest-patterns"},{"id":"LambdaTest/agent-skills/pytest-skill"},{"id":"Gentleman-Programming/Gentleman-Skills/pytest"},{"id":"prowler-cloud/prowler/pytest"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/python-testing-patterns"},{"id":"iusztinpaul/squid/squid-testing-python"},{"id":"xu-xiang/everything-claude-code-zh/python-testing"}]},"slug":{"owner":"JosiahSiegel","repo":"claude-plugin-marketplace","skill":"python-testing"},"version":"851278e2"}
