{ "info": { "author": "y.gavenchuk aka murminathor", "author_email": "murminathor@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing" ], "description": "==========\r\nTest-tools\r\n==========\r\n\r\nUsage\r\n=====\r\n\r\nTest files in project\r\n\r\n::\r\n\r\n /tests\r\n __init__.py\r\n /pkg1\r\n /fixtures\r\n foo1.json\r\n foo2.json\r\n __init__.py\r\n test1.py\r\n /pkg2\r\n /fixtures\r\n bar1.json\r\n bar2.json\r\n __init__.py\r\n test2.py\r\n\r\n\r\nContent of \"**tests/pkg1/fixtures/foo1.json**\":\r\n\r\n::\r\n\r\n {\r\n \"blah1\": [\r\n [\"foo\"],\r\n [\"bar\"],\r\n [1],\r\n [2],\r\n [true],\r\n [null]\r\n ],\r\n \"blah2\": [\r\n [-1234, 0],\r\n [3456, -2.345],\r\n [1, 1],\r\n [99999, false],\r\n [11, 789],\r\n [null, null]\r\n ]\r\n }\r\n\r\n\r\nContent of \"**tests/pkg1/test1**\":\r\n\r\n::\r\n\r\n from unittest import TestCase\r\n \r\n from test_tools import data_provider, FixtureManager\r\n \r\n fx_man1 = FixtureManager()\r\n fx_man1.load(fixture_file='foo1')\r\n \r\n fx_man2 = FixtureManager()\r\n fx_man2.load(fixture_file='foo2')\r\n \r\n \r\n class MyTestCase(TestCase):\r\n @data_provider(fx_man1['blah1'])\r\n def test_my_cool_feature(self, param1):\r\n # some code\r\n pass\r\n \r\n @data_provider(fx_man1['blah2'])\r\n def test_my_cool_feature(self, param1, param2):\r\n # some code\r\n pass\r\n \r\n @data_provider(fx_man2['blah3'])\r\n def test_my_cool_feature(self, param):\r\n # some code\r\n pass", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ygavenchuk/test-tools", "keywords": "", "license": "Apache2", "maintainer": "", "maintainer_email": "", "name": "test-tools", "package_url": "https://pypi.org/project/test-tools/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/test-tools/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ygavenchuk/test-tools" }, "release_url": "https://pypi.org/project/test-tools/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Tools for unit testing: data_provider and FixtureManager", "version": "0.0.3" }, "last_serial": 1533778, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "789816d7f8b10551e53e651ba37751f8", "sha256": "a7c55c8f177afda229e76ff0988bda23a64cda39f4afdf870d0b3eff071f5a66" }, "downloads": -1, "filename": "test-tools-0.0.2.tar.gz", "has_sig": false, "md5_digest": "789816d7f8b10551e53e651ba37751f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3751, "upload_time": "2015-05-01T14:01:44", "url": "https://files.pythonhosted.org/packages/a9/33/a4223426ad08bc284f6e6baa9e26958b701b115d4756946aada82ddb1bed/test-tools-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a9d948b0c7402a58a66b2c410166df01", "sha256": "946271aad70a05b4e2e49b312de6c7cd64264d2b7c85ade1b9bcbb8f0d243f7a" }, "downloads": -1, "filename": "test-tools-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a9d948b0c7402a58a66b2c410166df01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4427, "upload_time": "2015-05-05T11:16:01", "url": "https://files.pythonhosted.org/packages/40/b9/7c5742f8c12ee7b182b77ccdcd47da9756557b11175433be4b02c49d9a15/test-tools-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a9d948b0c7402a58a66b2c410166df01", "sha256": "946271aad70a05b4e2e49b312de6c7cd64264d2b7c85ade1b9bcbb8f0d243f7a" }, "downloads": -1, "filename": "test-tools-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a9d948b0c7402a58a66b2c410166df01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4427, "upload_time": "2015-05-05T11:16:01", "url": "https://files.pythonhosted.org/packages/40/b9/7c5742f8c12ee7b182b77ccdcd47da9756557b11175433be4b02c49d9a15/test-tools-0.0.3.tar.gz" } ] }