diff options
| author | Matthew Leonberger <[email protected]> | 2017-09-26 20:41:56 +0900 |
|---|---|---|
| committer | Matthew Leonberger <[email protected]> | 2017-09-28 07:41:42 +0900 |
| commit | c03b337d0837ff2516868584a17188031e372a06 (patch) | |
| tree | f3717e04a8eb0a891c4b92dcda007edcfc78c760 /tests | |
| parent | Merge pull request #113 from linuxunil/hotfix/unittests (diff) | |
| download | pywal-c03b337d0837ff2516868584a17188031e372a06.tar.xz pywal-c03b337d0837ff2516868584a17188031e372a06.zip | |
Fixed Issue #100
Pywal was using sequences that iterm2 recommends against. See https://iterm2.com/documentation-escape-codes.html
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/test_sequences.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_sequences.py b/tests/test_sequences.py index 2a993f5..dd3f887 100755 --- a/tests/test_sequences.py +++ b/tests/test_sequences.py @@ -18,7 +18,7 @@ class Testsequences(unittest.TestCase): result = sequences.set_special(11, COLORS["special"]["background"]) if platform.uname()[0] == "Darwin": - self.assertEqual(result, "\033]Ph1F211E\033\\") + self.assertEqual(result, "\033]1337;SetColors=bg=1F211E\a") else: self.assertEqual(result, "\033]11;#1F211E\007") @@ -28,7 +28,7 @@ class Testsequences(unittest.TestCase): result = sequences.set_special(11, COLORS["special"]["background"]) if platform.uname()[0] == "Darwin": - self.assertEqual(result, "\033]Ph1F211E\033\\") + self.assertEqual(result, "\033]1337;SetColors=bg=1F211E\a") else: self.assertEqual(result, "\033]11;[99]#1F211E\007") @@ -44,7 +44,7 @@ class Testsequences(unittest.TestCase): def test_set_iterm_tab_color(self): """> Create iterm tab color sequences""" result = sequences.set_iterm_tab_color(COLORS["special"]["background"]) - self.assertEqual(len(result), 104) + self.assertEqual(result, "\033]1337;SetColors=tab=1F211E\a") if __name__ == "__main__": |