{ "info": { "author": "Jonatha Daguerre", "author_email": "jonatha@daguerre.com.br", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython" ], "description": "# unittest prettify\n\n[![license](https://img.shields.io/pypi/l/unittest-prettify.svg)](https://pypi.org/project/unittest-prettify/)\n[![pypi version](https://img.shields.io/pypi/v/unittest-prettify.svg)](https://pypi.org/project/unittest-prettify/)\n[![python versions](https://img.shields.io/pypi/pyversions/unittest-prettify.svg)](https://pypi.org/project/unittest-prettify/)\n[![Build Status](https://travis-ci.org/jonathadv/unittest-prettify.svg?branch=master)](https://travis-ci.org/jonathadv/unittest-prettify)\n[![Code covarage](https://codecov.io/gh/jonathadv/unittest-prettify/branch/master/graph/badge.svg)](https://codecov.io/gh/jonathadv/unittest-prettify)\n\nA simple module to improve the [unittest](https://docs.python.org/3/library/unittest.html) output.\n\n\n\n\n### Which unittest output do you prefer?\n| | |\n|----|----|\n| | |\n\nIf you prefer the one in the right side, this module is for you.\n\n**unittest prettify** aims to be a set of tools to improve the `unittest` lib output.\n\n**Main features**\n- Change the test description color in both class and method levels.\n- Support to libraries which use `unittest` as bese such as [Django](https://docs.djangoproject.com/en/dev/topics/testing/overview/).\n\n\n## Installing it\n```\npip install unittest-prettify \n```\n\n## Using it\n\n#### Changing the color for a whole test case:\nThe `test_1()` and `test_2()` will inherit the green color from the class definition. \n\n```python\nimport unittest\nfrom unittest_prettify.colorize import (\n colorize,\n GREEN,\n)\n\n@colorize(color=GREEN)\nclass Foo(unittest.TestCase):\n def test_1(self):\n \"\"\"This test comment should be with the Class color set as GREEN\"\"\"\n\n def test_2(self):\n \"\"\"This test comment should be with the Class color set as GREEN\"\"\"\n\n```\n\n#### Changing the color for a specific test:\nThe `test_1()` will inherit the green color from the class definition, but `test_2()` will overwrite the color by red.\n\n```python\nimport unittest\nfrom unittest_prettify.colorize import (\n colorize,\n GREEN,\n RED,\n)\n\n@colorize(color=GREEN)\nclass Foo(unittest.TestCase):\n def test_1(self):\n \"\"\"This test comment should be with the Class color set as GREEN\"\"\"\n\n @colorize(color=RED)\n def test_2(self):\n \"\"\"This test comment should be RED\"\"\"\n\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/jonathadv/unittest-prettify/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "unittest-prettify", "package_url": "https://pypi.org/project/unittest-prettify/", "platform": "", "project_url": "https://pypi.org/project/unittest-prettify/", "project_urls": { "Homepage": "https://github.com/jonathadv/unittest-prettify/" }, "release_url": "https://pypi.org/project/unittest-prettify/1.0.post4/", "requires_dist": null, "requires_python": ">=3.5.*", "summary": "A simple module to improve the unittest output.", "version": "1.0.post4" }, "last_serial": 5273759, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4f6d26294b7f92bac5e94e9355ace1bf", "sha256": "a08b39660f1e03d851047359905a8910627115fb7b620fe14e6db5c5cc04068e" }, "downloads": -1, "filename": "unittest_prettify-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4f6d26294b7f92bac5e94e9355ace1bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 2862, "upload_time": "2019-05-15T16:46:00", "url": "https://files.pythonhosted.org/packages/cf/3c/fa76c6d6509671c8de5210b6a39b4558cee4e0f0e0b1a33f80ae3171f29c/unittest_prettify-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba31d005020cf59eef3d8415be024bcc", "sha256": "b67efe61cae9b6dc3f8d44bc66805907d1f7d15c8cc0e20ce7c900aa7c66c4b0" }, "downloads": -1, "filename": "unittest-prettify-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ba31d005020cf59eef3d8415be024bcc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 2496, "upload_time": "2019-05-15T16:46:03", "url": "https://files.pythonhosted.org/packages/91/12/a3c27cf7ca79d0bf39870552703de065f7f4e4d740db9765a3c63a342e81/unittest-prettify-1.0.0.tar.gz" } ], "1.0.post1": [ { "comment_text": "", "digests": { "md5": "2334b7b2ba099d23537b796f55c41f13", "sha256": "bb916406e93db48cbfeffe9f11234cfe3f25670ddb14ee17e9e385c320bb718c" }, "downloads": -1, "filename": "unittest_prettify-1.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "2334b7b2ba099d23537b796f55c41f13", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 2897, "upload_time": "2019-05-15T16:57:20", "url": "https://files.pythonhosted.org/packages/e8/f2/f47ea260406f43efc454ac56b6eb5e8dc5aaa233c536dcf1238bc3e24f6a/unittest_prettify-1.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "952a997faca146ebca4be0de9de1d6cb", "sha256": "de2d4c312ac2a2047c11ff3450563d553fade9b230e494abd0c3b9cf1d79da9f" }, "downloads": -1, "filename": "unittest-prettify-1.0.post1.tar.gz", "has_sig": false, "md5_digest": "952a997faca146ebca4be0de9de1d6cb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 2500, "upload_time": "2019-05-15T16:57:22", "url": "https://files.pythonhosted.org/packages/02/8f/e66f95aad2acd603652d0c2415b89e2e9f53b410b693bc29b2ecf71f7fbc/unittest-prettify-1.0.post1.tar.gz" } ], "1.0.post2": [ { "comment_text": "", "digests": { "md5": "4a8536956f8f41d045025f05b5ecba53", "sha256": "d09aaa44bbdab41810eab8bd2ecbe4abf7f2c2b6c26eb30d22c8f49e86c7a353" }, "downloads": -1, "filename": "unittest_prettify-1.0.post2-py3-none-any.whl", "has_sig": false, "md5_digest": "4a8536956f8f41d045025f05b5ecba53", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 2896, "upload_time": "2019-05-15T17:12:35", "url": "https://files.pythonhosted.org/packages/80/24/201c801fb3f44310b884979a7020f4f985f7b8148fe1eea1fc4f25c731ee/unittest_prettify-1.0.post2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b30be987e39d05469b77bd9bdf98ca44", "sha256": "b34d8e33ce2c8f070328b06d1bfe3d5db38ebf3a15a180f7431157e86f7b8e20" }, "downloads": -1, "filename": "unittest-prettify-1.0.post2.tar.gz", "has_sig": false, "md5_digest": "b30be987e39d05469b77bd9bdf98ca44", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 2498, "upload_time": "2019-05-15T17:12:37", "url": "https://files.pythonhosted.org/packages/dd/93/b2f7063ec6baa6489fbf1ccbf1d69edff8bb556c2885dd4612730c38153c/unittest-prettify-1.0.post2.tar.gz" } ], "1.0.post3": [ { "comment_text": "", "digests": { "md5": "6d274db1ca1c467f26b1e13f8afa7196", "sha256": "6b22434b2f4e902e047ab2c94dfc321b274e44d2bf6efcb744474334c88c91e1" }, "downloads": -1, "filename": "unittest_prettify-1.0.post3-py3-none-any.whl", "has_sig": false, "md5_digest": "6d274db1ca1c467f26b1e13f8afa7196", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 3761, "upload_time": "2019-05-15T17:16:28", "url": "https://files.pythonhosted.org/packages/3e/63/4f749be079b80fe354593030b2c00504c0899def36cced9c768b9434bf18/unittest_prettify-1.0.post3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "428a3407d1821c2cb76ff37be25755d5", "sha256": "8250f6fed5c107d21093271fd21659f1b6b318a3408fa13c7fffa9cea41c9408" }, "downloads": -1, "filename": "unittest-prettify-1.0.post3.tar.gz", "has_sig": false, "md5_digest": "428a3407d1821c2cb76ff37be25755d5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 2499, "upload_time": "2019-05-15T17:16:30", "url": "https://files.pythonhosted.org/packages/2e/90/9a2b28b51d6893c80d27f560cf8b9d12bfea395f131843ae3e1a6be5eb93/unittest-prettify-1.0.post3.tar.gz" } ], "1.0.post4": [ { "comment_text": "", "digests": { "md5": "8eede4539a5d12052e3b8dc3a7d319a2", "sha256": "d5baf5aea58f4d5c7c4f72e9d3c59140ff059f8743af8f43810ecce7ce969756" }, "downloads": -1, "filename": "unittest_prettify-1.0.post4-py3-none-any.whl", "has_sig": false, "md5_digest": "8eede4539a5d12052e3b8dc3a7d319a2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 3968, "upload_time": "2019-05-15T18:23:39", "url": "https://files.pythonhosted.org/packages/6b/88/a3071dbcd7c682d0b35c43efcde16a0a50704ce17e60a9c272d572cf6b73/unittest_prettify-1.0.post4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c72c653f9b21252dad937adee079c4b6", "sha256": "1bfa34cea29943cf6b911f19ccb02d54d489b22d4a3ef225100b1841af84d60f" }, "downloads": -1, "filename": "unittest-prettify-1.0.post4.tar.gz", "has_sig": false, "md5_digest": "c72c653f9b21252dad937adee079c4b6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 2755, "upload_time": "2019-05-15T18:23:40", "url": "https://files.pythonhosted.org/packages/f1/d9/dfd4e2158a4c21a47d85a9ab4a69533de135fe31056e5d73e3faa02786be/unittest-prettify-1.0.post4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8eede4539a5d12052e3b8dc3a7d319a2", "sha256": "d5baf5aea58f4d5c7c4f72e9d3c59140ff059f8743af8f43810ecce7ce969756" }, "downloads": -1, "filename": "unittest_prettify-1.0.post4-py3-none-any.whl", "has_sig": false, "md5_digest": "8eede4539a5d12052e3b8dc3a7d319a2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 3968, "upload_time": "2019-05-15T18:23:39", "url": "https://files.pythonhosted.org/packages/6b/88/a3071dbcd7c682d0b35c43efcde16a0a50704ce17e60a9c272d572cf6b73/unittest_prettify-1.0.post4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c72c653f9b21252dad937adee079c4b6", "sha256": "1bfa34cea29943cf6b911f19ccb02d54d489b22d4a3ef225100b1841af84d60f" }, "downloads": -1, "filename": "unittest-prettify-1.0.post4.tar.gz", "has_sig": false, "md5_digest": "c72c653f9b21252dad937adee079c4b6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 2755, "upload_time": "2019-05-15T18:23:40", "url": "https://files.pythonhosted.org/packages/f1/d9/dfd4e2158a4c21a47d85a9ab4a69533de135fe31056e5d73e3faa02786be/unittest-prettify-1.0.post4.tar.gz" } ] }