mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Improved code quality
This commit is contained in:
parent
9de6a74c39
commit
f2e53d2902
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue