{ "info": { "author": "Jeremy Zolnai-Lucas", "author_email": "jezza672@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Project Title\n\nA lightweight decorator based testing package for Python 3.5+.\n\n## Installing\n\nThe easiest way to install is to use pip:\n```\npip install zest\n```\nor\n```\npython3 -m pip install zest\n```\n\nYou can also download the source and place it the directory of the module you want to use it in. An example directory structure is shown below:\n- **project_directory**\n - **zest**\n - *zest's files here*\n - your_file.py\n - **your_test_file.py**\n\n## Getting Started\n\nA suggested workflow is to write the test first in a seperate *tests.py* file, like so:\n\n```\nfrom zest import tests, raises, test_all\nimport main\n\n@tests(main.squared)\ndef test_squared(func = None):\n \"\"\"Ensure squaring is done accureately and only squarable types are squared\"\"\"\n # Make sure ValueError is thrown if invalid imputs are given\n assert raises(TypeError, func, \"NaN\"), \"Should raise TypeError when 'NaN' supplied\"\n\n assert raises(TypeError, func, {1, 2, 3}), \"Should raise TypeError when {1, 2, 3} supplied\"\n\n assert func(4) == 16, \"4^2 is 16, received %s\" % func(4)\n assert func(5) == 25, \"5^2 is 25, received %s\" % func(5)\n\nprint(test_squared())\n```\n\nNote multiple tests can be placed in one test function.\nmain.py simply contains a function called squared that squares the input and returns it.\n\nZest keeps track of all registered testing functions, allowing you to run them all at once, and get grouped information on the results of the test, like so:\n```\nprint(test_all())\n```\nAt the moment test_all() only returns a pretty print output, but in the future this will be fleshed out to be more comprehensive\n\n### Prerequisites\n\nPython 3.5+\n\n## Authors\n\n**Jeremy Zolnai-Lucas** - *Initial work* - [Jezza672](https://github.com/Jezza672)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jezza672/zest", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "zest", "package_url": "https://pypi.org/project/zest/", "platform": "", "project_url": "https://pypi.org/project/zest/", "project_urls": { "Homepage": "https://github.com/jezza672/zest" }, "release_url": "https://pypi.org/project/zest/0.1.1.post1/", "requires_dist": null, "requires_python": "", "summary": "A testing utility package", "version": "0.1.1.post1" }, "last_serial": 5440562, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5f6114c843abeb8f84028b39954c33e8", "sha256": "99d77ebaefa5ccbcb647df3c8e15995fc98b8ba54b72d57492dac834cff7af00" }, "downloads": -1, "filename": "zest-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5f6114c843abeb8f84028b39954c33e8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3165, "upload_time": "2019-06-24T12:31:23", "url": "https://files.pythonhosted.org/packages/3f/bc/33c995591f488a96c0fbe6ff983a6607ace78b3b519173b51643c8eaab34/zest-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "833d74eeb7c64d7c43eaec92eb537228", "sha256": "20f2744dc4e871363b6b7036915f8e8c8f67fb5c5674d73f38ce94cf09306bd7" }, "downloads": -1, "filename": "zest-0.1.tar.gz", "has_sig": false, "md5_digest": "833d74eeb7c64d7c43eaec92eb537228", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2569, "upload_time": "2019-06-24T12:31:25", "url": "https://files.pythonhosted.org/packages/eb/8a/5162e72340ff7ff085129cc2145ff5382748a0f9221b44f09656ae3d705a/zest-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "58a7ab8bdc3b9d351399ab3128c195de", "sha256": "b17299092dfd1567546d315c697589a0087f6991c0f04034fb44d2c692a8fdc5" }, "downloads": -1, "filename": "zest-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "58a7ab8bdc3b9d351399ab3128c195de", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3545, "upload_time": "2019-06-24T12:43:17", "url": "https://files.pythonhosted.org/packages/ec/50/849e0f4049d2ed7e18c4b6bfd048bc057f66c724d91aefc800957b54dd4d/zest-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "532c2ba96c5e3507f0e53220f86d0652", "sha256": "b84d4f35faed850a94920f6f6df79284f751d54bf48ebf73b5a1d1c6bfc83cb1" }, "downloads": -1, "filename": "zest-0.1.1.tar.gz", "has_sig": false, "md5_digest": "532c2ba96c5e3507f0e53220f86d0652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2982, "upload_time": "2019-06-24T12:43:18", "url": "https://files.pythonhosted.org/packages/d9/50/9ca5ff9425de0de7981dbf49e1f216b0fe785339ebaff59c82016c91b819/zest-0.1.1.tar.gz" } ], "0.1.1.post1": [ { "comment_text": "", "digests": { "md5": "af0e78d61f9ab50f38b93ac5ca6596f2", "sha256": "a109278a104f7c4dcc591eebd3aa499e3bf21ff387eac4107a30da8db4a98bec" }, "downloads": -1, "filename": "zest-0.1.1.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "af0e78d61f9ab50f38b93ac5ca6596f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3588, "upload_time": "2019-06-24T12:58:30", "url": "https://files.pythonhosted.org/packages/a4/94/94562190d9c910e18ccf1d2b7795a498687677a6f3213197c1484b571b48/zest-0.1.1.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c73a678437921ec10253824f1300a17", "sha256": "4dc01e55757b5e2d1585f97fc40bbcaee59014ca6084dc291eda7914590ca238" }, "downloads": -1, "filename": "zest-0.1.1.post1.tar.gz", "has_sig": false, "md5_digest": "6c73a678437921ec10253824f1300a17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2962, "upload_time": "2019-06-24T12:58:32", "url": "https://files.pythonhosted.org/packages/83/64/5ef962eb5189b1e4ef521aa108a45ef5282540806f0206f0daa3845592eb/zest-0.1.1.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "af0e78d61f9ab50f38b93ac5ca6596f2", "sha256": "a109278a104f7c4dcc591eebd3aa499e3bf21ff387eac4107a30da8db4a98bec" }, "downloads": -1, "filename": "zest-0.1.1.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "af0e78d61f9ab50f38b93ac5ca6596f2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3588, "upload_time": "2019-06-24T12:58:30", "url": "https://files.pythonhosted.org/packages/a4/94/94562190d9c910e18ccf1d2b7795a498687677a6f3213197c1484b571b48/zest-0.1.1.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c73a678437921ec10253824f1300a17", "sha256": "4dc01e55757b5e2d1585f97fc40bbcaee59014ca6084dc291eda7914590ca238" }, "downloads": -1, "filename": "zest-0.1.1.post1.tar.gz", "has_sig": false, "md5_digest": "6c73a678437921ec10253824f1300a17", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2962, "upload_time": "2019-06-24T12:58:32", "url": "https://files.pythonhosted.org/packages/83/64/5ef962eb5189b1e4ef521aa108a45ef5282540806f0206f0daa3845592eb/zest-0.1.1.post1.tar.gz" } ] }