Improved code quality

This commit is contained in:
Dimitris Zlatanidis 2024-04-29 22:03:56 +03:00
parent 9de6a74c39
commit f2e53d2902

View file

@ -4,10 +4,15 @@ from slpkg.configs import Configs
class TestColors(unittest.TestCase, Configs): class TestColors(unittest.TestCase, Configs):
def setUp(self): """ Test for colors.
"""
def setUp(self) -> None:
super(Configs, self).__init__() super(Configs, self).__init__()
def test_colors(self): def test_colors(self) -> None:
""" Test colors.
"""
self.assertEqual('\033[32;5m', self.blink) self.assertEqual('\033[32;5m', self.blink)
self.assertEqual('\033[1m', self.bold) self.assertEqual('\033[1m', self.bold)
self.assertEqual('\x1b[91m', self.red) self.assertEqual('\x1b[91m', self.red)