{"id":26718771,"url":"https://github.com/geekie/datadriven","last_synced_at":"2025-07-26T07:33:46.383Z","repository":{"id":138094648,"uuid":"444607264","full_name":"geekie/datadriven","owner":"geekie","description":"Run a test case multiple times with different data","archived":false,"fork":false,"pushed_at":"2022-01-19T19:30:42.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-04T17:17:56.501Z","etag":null,"topics":["datadriven","python","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geekie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-05T00:30:45.000Z","updated_at":"2022-01-05T14:46:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d6a9242-8971-44a8-9254-fa28ffb32ffb","html_url":"https://github.com/geekie/datadriven","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/geekie/datadriven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekie%2Fdatadriven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekie%2Fdatadriven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekie%2Fdatadriven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekie%2Fdatadriven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geekie","download_url":"https://codeload.github.com/geekie/datadriven/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekie%2Fdatadriven/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267136055,"owners_count":24041157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datadriven","python","testing"],"created_at":"2025-03-27T17:50:10.012Z","updated_at":"2025-07-26T07:33:46.373Z","avatar_url":"https://github.com/geekie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datadriven\n\ndatadriven allows you to run a test case multiple times with different data. It was designed to work\nwith `unittest.TestCase` test methods, any test runner (nose, nose2, unittest, unittest2 and\npytest), in Python 2.7 or 3.7+.\n\n## Usage\n\n```py\nimport datadriven\n\nclass SomeTestCase(unittest.TestCase):\n\n    @datadriven.datadriven(\n        caseA=datadriven.Args(first=\"foo\"),\n        caseB=datadriven.Args(\"hello\", second=\"world\"),\n    )\n    def test_method(self, first, second=None):\n        ...\n```\n\nThis is the equivalent of writing:\n\n```py\nimport datadriven\n\nclass SomeTestCase(unittest.TestCase):\n\n    def test_method(self, first, second=None):\n        ...\n\n    def test_method_caseA(self):\n        self.test_method(\"foo\")\n\n    def test_method_caseB(self):\n        self.test_method(\"hello\", \"world\")\n```\n\nThe only difference is that when wrapped with `@datadriven`, the test `test_method` won't be really executed.\n\n## License\n\n[Apache-2.0 License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekie%2Fdatadriven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekie%2Fdatadriven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekie%2Fdatadriven/lists"}