{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"ddt multiplies a single test case across multiple datasets, letting you run parameterized tests that appear as separate test cases in your test runner.","skillfed_tags":["unittest","parameterization","test-data"],"use_cases":["Run the same test logic against multiple input datasets without duplicating test code","Generate separate test results for each data variant to identify which inputs fail","Test boundary conditions and edge cases by supplying a list of known problem values","Reduce test file size when you have many similar test cases with only data differences"],"what_it_does":"ddt is a decorator-based test parameterization library for Python's unittest framework. It lets you write a single test method and run it repeatedly with different input data, with each dataset appearing as a separate test case in your test output. This eliminates the need to write multiple nearly-identical test methods or manually loop through test data within a single test.\n\nThe package has no runtime dependencies and installs as a pure Python wheel. It's been in Beta status since its first release in 2012 and receives infrequent updates, but the core functionality is stable and widely used. It integrates directly with unittest's test discovery and reporting, making parameterized tests visible in standard test runners.","worth_installing":"Yes. ddt is a lightweight, dependency-free tool that solves a real unittest problem with a simple decorator pattern. It's stable, permissively licensed, and widely downloaded. The dormant maintenance status is not a concern for a mature utility with no external dependencies\u2014there's little that needs updating. Install it if you use unittest and want to avoid writing repetitive parameterized test methods."},"id":"ddt","links":{"html":"https://skillfed.io/packages/ddt","md":"https://skillfed.io/packages/ddt.md","pypi":"https://pypi.org/project/ddt/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-02-26","license_spdx":null,"license_treatment":"permissive","name":"ddt","python_support":"unspecified","summary":"Data-Driven/Decorated Tests"},"popularity":{"monthly_downloads":1611131,"position":3719,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.7.2"}
