Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
tests: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed May 25, 2018
1 parent 603276a commit 8942e41
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\\")
Expand All @@ -24,8 +26,10 @@ def test_set_special(self):

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\\")
Expand Down

0 comments on commit 8942e41

Please sign in to comment.