{ "info": { "author": "20C", "author_email": "code@20c.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Testing" ], "description": "# pytest filedata\n\n[![PyPI](https://img.shields.io/pypi/v/pytest-filedata.svg?maxAge=3600)](https://pypi.python.org/pypi/pytest-filedata)\n[![PyPI](https://img.shields.io/pypi/pyversions/pytest-filedata.svg?maxAge=3600)](https://pypi.python.org/pypi/pytest-filedata)\n[![Travis CI](https://img.shields.io/travis/20c/pytest-filedata.svg?maxAge=3600)](https://travis-ci.org/20c/pytest-filedata)\n[![Code Health](https://landscape.io/github/20c/pytest-filedata/master/landscape.svg?style=flat)](https://landscape.io/github/20c/pytest-filedata/master)\n[![Codecov](https://img.shields.io/codecov/c/github/20c/pytest-filedata/master.svg?maxAge=3600)](https://codecov.io/github/20c/pytest-filedata)\n[![Requires.io](https://img.shields.io/requires/github/20c/pytest-filedata.svg?maxAge=3600)](https://requires.io/github/20c/pytest-filedata/requirements)\n\neasily load test data from files\n\n### Introduction\n\nThis was created to save the tediousness of working with sets of data for\ntesting inside the test files.\n\n### Installing\n\n```sh\npip install pytest-filedata\n```\n\n### Using\n\nAdd this to your `conftest.py` file:\n\n```python\nimport pytest_filedata\n\npytest_filedata.setup(os.path.dirname(__file__))\n\n\ndef pytest_generate_tests(metafunc):\n for fixture in metafunc.fixturenames:\n if fixture.startswith('data_'):\n data = pytest_filedata.get_data(fixture)\n metafunc.parametrize(fixture, list(data.values()), ids=list(data.keys()))\n```\n\n\n### License\n\nCopyright 2016 20C, LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this softare except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/20c/pytest-filedata/archive/0.4.0.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/20c/pytest-filedata", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "pytest-filedata", "package_url": "https://pypi.org/project/pytest-filedata/", "platform": "", "project_url": "https://pypi.org/project/pytest-filedata/", "project_urls": { "Download": "https://github.com/20c/pytest-filedata/archive/0.4.0.zip", "Homepage": "https://github.com/20c/pytest-filedata" }, "release_url": "https://pypi.org/project/pytest-filedata/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "easily load data from files", "version": "0.4.0" }, "last_serial": 4709798, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f53a0ccafb3d7b25789cb73554bd0019", "sha256": "971eb972f83aa49874acbf42da9ff565b2b610f837d0bc4d59838dccc259d2fc" }, "downloads": -1, "filename": "pytest_filedata-0.1.0.tar.gz", "has_sig": true, "md5_digest": "f53a0ccafb3d7b25789cb73554bd0019", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7369, "upload_time": "2018-01-01T16:56:10", "url": "https://files.pythonhosted.org/packages/55/f4/b1aa40a618a281e1d90dff6d4f36b21f03b9b663b4c2782872038e3d3686/pytest_filedata-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e6687a641fc9c9fe05f6c8b7f97dab7d", "sha256": "8a8d35b687f621964bd78060e0657f270bf00a94853823f4b4d11518f67e5dd7" }, "downloads": -1, "filename": "pytest_filedata-0.2.0.tar.gz", "has_sig": true, "md5_digest": "e6687a641fc9c9fe05f6c8b7f97dab7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7677, "upload_time": "2018-02-18T18:34:52", "url": "https://files.pythonhosted.org/packages/f4/37/d8a7609decdbab49153315a7413821dee296965dae39a76c6e56ff7e4249/pytest_filedata-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "032e2d7af91dd628ae405e77c8df4c0e", "sha256": "cc0fc096fd6866464f4b4854d6b1d4600e00dd0fd27c15b306dc0e006847b3fd" }, "downloads": -1, "filename": "pytest_filedata-0.3.0.tar.gz", "has_sig": true, "md5_digest": "032e2d7af91dd628ae405e77c8df4c0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7719, "upload_time": "2018-06-20T06:26:39", "url": "https://files.pythonhosted.org/packages/a0/07/3e9435899c1ee098084761b0e9fbbe0a4d391fc7ac06c8ec5a6c52df736b/pytest_filedata-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "e8fbf5855bab21404d6c9d9441bfc441", "sha256": "3a2a3f346087ac82dfd313212cd2d61c5fcfd23b0aecaa2484e6c31cfcb32fd5" }, "downloads": -1, "filename": "pytest_filedata-0.4.0.tar.gz", "has_sig": true, "md5_digest": "e8fbf5855bab21404d6c9d9441bfc441", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8096, "upload_time": "2019-01-17T21:49:32", "url": "https://files.pythonhosted.org/packages/b5/3f/281999d526f40425233ce2e9eabfe054dd8ec3b9843cbe84340165c5aaa1/pytest_filedata-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e8fbf5855bab21404d6c9d9441bfc441", "sha256": "3a2a3f346087ac82dfd313212cd2d61c5fcfd23b0aecaa2484e6c31cfcb32fd5" }, "downloads": -1, "filename": "pytest_filedata-0.4.0.tar.gz", "has_sig": true, "md5_digest": "e8fbf5855bab21404d6c9d9441bfc441", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8096, "upload_time": "2019-01-17T21:49:32", "url": "https://files.pythonhosted.org/packages/b5/3f/281999d526f40425233ce2e9eabfe054dd8ec3b9843cbe84340165c5aaa1/pytest_filedata-0.4.0.tar.gz" } ] }