$npx skillfedfor your agent

ddt

Data-Driven/Decorated Tests

Worth itPyPI TestingReleased Feb 20241.6M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ddt-1.7.2-py2.py3-none-any.whl
v1.7.2 · released 2024-02-26

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—there's little that needs updating. Install it if you use unittest and want to avoid writing repetitive parameterized test methods.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Installation is straightforward with no runtime dependencies.
  • The project is dormant (last release 900 days ago) but the repository remains active and the package is stable at Beta status.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without restriction.

last release 2024-02-26 (900 days) · last repo commit 2024-07-16 · 442 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,611,131 downloads/mo, #3,719 on PyPI

Verify before relying

pip install ddt

import unittest
from ddt import ddt, data

@ddt
class TestExample(unittest.TestCase):
    @data(1, 2, 3)
    def test_value(self, value):
        self.assertGreater(value, 0)
  • Whether ddt works with modern test frameworks beyond unittest (pytest, nose, etc.)
  • Performance characteristics when running hundreds or thousands of parameterized test cases
Same gist for agents: .md · .json

What it is and 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.

The 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.

Use it for

  • 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

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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—there's little that needs updating. Install it if you use unittest and want to avoid writing repetitive parameterized test methods.

Install

ddt on PyPI

Before you install

Installation is straightforward with no runtime dependencies. The project is dormant (last release 900 days ago) but the repository remains active and the package is stable at Beta status.

License in practice

Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without restriction.

Quickstart

pip install ddt

import unittest
from ddt import ddt, data

@ddt
class TestExample(unittest.TestCase):
    @data(1, 2, 3)
    def test_value(self, value):
        self.assertGreater(value, 0)

Verify before relying

  • Whether ddt works with modern test frameworks beyond unittest (pytest, nose, etc.)
  • Performance characteristics when running hundreds or thousands of parameterized test cases

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 900 days since the last release
Last repo commit
First released
Downloads1,611,131 / month, #3,719 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Testing

Evidence: ddt-1.7.2-py2.py3-none-any.whl

Tags

Capabilities
parameterized testingdata-driven teststest case multiplicationunittest parameterizationtest data variationdecorated test casestest case replication
Topics
unittestparameterizationtest-data

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “data-driven tests”

  • ddtddt multiplies a single test case across multiple datasets, letting…
  • parameterizedParameterized testing decorator that works with nose, pytest,…
  • robotframework-csvlibraryCSVLibrary is a Robot Framework library that provides keywords for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also parameterized · parametrize · robotframework-datadriver · testscenarios · unittest-parametrize · pytest-subtests · pytest-django · rdrobust · python-subunit · pytest-variables