Metadata-Version: 2.1
Name: unittest-prettify
Version: 1.0.post3
Summary: A simple module to improve the unittest output.
Home-page: https://github.com/jonathadv/unittest-prettify/
Author: Jonatha Daguerre
Author-email: jonatha@daguerre.com.br
License: MIT
Description: # unittest Prettify
        
        [![license](https://img.shields.io/pypi/l/unittest-prettify.svg)](https://pypi.org/project/unittest-prettify/)
        [![pypi version](https://img.shields.io/pypi/v/unittest-prettify.svg)](https://pypi.org/project/unittest-prettify/)
        [![python versions](https://img.shields.io/pypi/pyversions/unittest-prettify.svg)](https://pypi.org/project/unittest-prettify/)
        
        
        A simple module to improve the [unittest](https://docs.python.org/3/library/unittest.html) output.
        
        
        
        
        ### Which unittest output do you prefer?
        |    |    |
        |----|----|
        |<img src="https://github.com/jonathadv/unittest-prettify/raw/master/assets/screenshot1.png" width="300"> |<img src="https://github.com/jonathadv/unittest-prettify/raw/master/assets/screenshot2.png" width="300"> |
        
        If you prefer the one in the right side, this module is for you.
        
        It aims to pretiffy the description in the unittest output by colorizing it.
        
        
        
        ## Using it
        
        #### Changing the color for a whole test case:
        The `test_1()` and `test_2()` will inherit the green color from the class definition. 
        
        ```python
        import unittest
        from unittest_prettify.colorize import (
            colorize,
            GREEN,
        )
        
        @colorize(color=GREEN)
        class Foo(unittest.TestCase):
            def test_1(self):
                """This test comment should be with the Class color set as GREEN"""
        
            def test_2(self):
                """This test comment should be with the Class color set as GREEN"""
        
        ```
        
        #### Changing the color for a specific test:
        The `test_1()` will inherit the green color from the class definition, but `test_2()` will overwrite the color by red.
        
        ```python
        import unittest
        from unittest_prettify.colorize import (
            colorize,
            GREEN,
            RED,
        )
        
        @colorize(color=GREEN)
        class Foo(unittest.TestCase):
            def test_1(self):
                """This test comment should be with the Class color set as GREEN"""
                
            @colorize(color=RED)
            def test_2(self):
                """This test comment should be RED"""
        
        ``` 
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.5.*
Description-Content-Type: text/markdown
