mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-24 06:48:41 +01:00
tests: fix tests
This commit is contained in:
parent
603276a126
commit
8942e41763
@ -14,8 +14,10 @@ class Testsequences(unittest.TestCase):
|
||||
|
||||
def test_set_special(self):
|
||||
"""> Create special escape sequence."""
|
||||
util.Color.alpha_num = "100"
|
||||
result = sequences.set_special(11, COLORS["special"]["background"])
|
||||
alpha = "100"
|
||||
result = sequences.set_special(11,
|
||||
COLORS["special"]["background"],
|
||||
"h", alpha)
|
||||
|
||||
if platform.uname()[0] == "Darwin":
|
||||
self.assertEqual(result, "\033]Ph1F211E\033\\")
|
||||
@ -24,8 +26,10 @@ class Testsequences(unittest.TestCase):
|
||||
|
||||
def test_set_special_alpha(self):
|
||||
"""> Create special escape sequence with alpha."""
|
||||
util.Color.alpha_num = "99"
|
||||
result = sequences.set_special(11, COLORS["special"]["background"])
|
||||
alpha = "99"
|
||||
result = sequences.set_special(11,
|
||||
COLORS["special"]["background"],
|
||||
"h", alpha)
|
||||
|
||||
if platform.uname()[0] == "Darwin":
|
||||
self.assertEqual(result, "\033]Ph1F211E\033\\")
|
||||
|
Loading…
Reference in New Issue
Block a user