{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"pytest-cases lets you separate test case data from test code in pytest, using decorators and fixtures to parametrize tests with external data sources.","skillfed_tags":["pytest-plugin","test-parametrization","data-driven-testing"],"use_cases":["Organize large test suites where many test functions share the same logic but differ only in input data.","Load test cases from external files or databases without hardcoding them into test functions.","Reuse the same test case set across multiple test functions without duplication.","Implement lazy-loaded test cases that are only instantiated when the test runs.","Combine multiple case sources (fixtures, decorators, data files) in a single parametrized test."],"what_it_does":"pytest-cases is a pytest plugin that decouples test case definitions from test execution logic. Instead of embedding all test data inline or using pytest's built-in parametrize, you define cases separately (via decorators, fixtures, or data files) and reference them in test functions. The plugin handles the plumbing to inject each case into your test, reducing boilerplate and making test suites easier to maintain when you have many cases or shared test data.\n\nIt depends on pytest as its core framework, plus decopatch and makefun for decorator manipulation, and packaging for version handling. The package is actively maintained and classified as Production/Stable, with support for Python 3.9 through 3.14.","worth_installing":"Yes. pytest-cases is actively maintained, has no known vulnerabilities, and solves a real problem in test organization. The low install friction and permissive license make it a straightforward addition to any pytest-based project. Install it if you have test suites with many cases or external test data that you want to keep separate from your test logic."},"id":"pytest-cases","links":{"html":"https://skillfed.io/packages/pytest-cases","md":"https://skillfed.io/packages/pytest-cases.md","pypi":"https://pypi.org/project/pytest-cases/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-02","license_spdx":null,"license_treatment":"permissive","name":"pytest-cases","python_support":"unspecified","summary":"Separate test code from test cases in pytest."},"popularity":{"monthly_downloads":1020857,"position":4491,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.10.1"}
