From d98be353ecd5deff97804312ec798fb227adfbc1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 9 Aug 2017 11:22:51 +1000 Subject: general: Make pywal compatible with python 3.5 --- tests/test_sequences.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_sequences.py') diff --git a/tests/test_sequences.py b/tests/test_sequences.py index 66f4084..392abc7 100755 --- a/tests/test_sequences.py +++ b/tests/test_sequences.py @@ -32,7 +32,8 @@ 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), 3) + print(result) + self.assertEqual(len(result), 104) if __name__ == "__main__": -- cgit v1.2.3 From cbbb5a5b6a317dd2d8790afb8aa6b26d1d61a179 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 10 Aug 2017 01:08:28 +1000 Subject: tests: Fix print --- tests/test_sequences.py | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/test_sequences.py') diff --git a/tests/test_sequences.py b/tests/test_sequences.py index 392abc7..7a21c11 100755 --- a/tests/test_sequences.py +++ b/tests/test_sequences.py @@ -32,7 +32,6 @@ 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"]) - print(result) self.assertEqual(len(result), 104) -- cgit v1.2.3 From c743cab4f0b74e928496c2a5052906da52acc8f7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 12 Aug 2017 12:21:22 +1000 Subject: tests: Add a test for sequence order. --- tests/test_sequences.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/test_sequences.py') diff --git a/tests/test_sequences.py b/tests/test_sequences.py index 7a21c11..8034da7 100755 --- a/tests/test_sequences.py +++ b/tests/test_sequences.py @@ -34,6 +34,13 @@ class Testsequences(unittest.TestCase): result = sequences.set_iterm_tab_color(COLORS["special"]["background"]) self.assertEqual(len(result), 104) + def test_sequence_order(self): + """> Test that the sequences are in order.""" + result = sequences.create_sequences(COLORS, vte=False).split("\007") + self.assertEqual(result[2], "\x1b]4;2;#CC6A93") + self.assertEqual(result[15], "\x1b]4;15;#F5F1F4") + self.assertEqual(result[8], "\x1b]4;8;#666666") + if __name__ == "__main__": unittest.main() -- cgit v1.2.3