From c905be109fa47e6a17198d8d48b6610a78f04717 Mon Sep 17 00:00:00 2001 From: Peter Brittain Date: Sat, 22 Jun 2024 10:00:43 +0100 Subject: [PATCH] Fix ut to use new colour palette --- tests/test_widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_widgets.py b/tests/test_widgets.py index 72ad023..00cb005 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -3287,7 +3287,7 @@ def test_inline_colours(self): form.update(0) self.assertEqual(canvas.get_from(0, 0), (ord("A"), 7, 1, 6)) self.assertEqual(canvas.get_from(1, 0), (ord("B"), 1, 0, 6)) - self.assertEqual(canvas.get_from(0, 3), (ord("P"), 3, 1, 4)) + self.assertEqual(canvas.get_from(0, 3), (ord("P"), 3, 2, 4)) self.assertEqual(canvas.get_from(0, 4), (ord("Q"), 9, 2, 4)) # Check that using ColouredText preserves colour data @@ -3306,8 +3306,8 @@ def test_inline_colours(self): # Check that the Ansi terminal colour parsing worked. self.assertEqual(canvas.get_from(0, 5), (ord("A"), 7, 1, 4)) self.assertEqual(canvas.get_from(3, 5), (ord("B"), 1, 1, 4)) - self.assertEqual(canvas.get_from(0, 6), (ord("1"), 3, 1, 4)) - self.assertEqual(canvas.get_from(3, 6), (ord("2"), 2, 1, 4)) + self.assertEqual(canvas.get_from(0, 6), (ord("1"), 3, 2, 4)) + self.assertEqual(canvas.get_from(3, 6), (ord("2"), 2, 2, 4)) def test_list_box_options(self): """