Skip to content

Commit

Permalink
Update qtconsole/tests/test_ansi_code_processor.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Althviz Moré <[email protected]>
  • Loading branch information
jsbautista and dalthviz authored Jul 15, 2024
1 parent aca7477 commit f36e18b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qtconsole/tests/test_ansi_code_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ def test_colors(self):
self.assertEqual(self.processor.foreground_color, None)
elif i == 3:
foreground_color = self.processor.foreground_color
self.assertEqual(self.qt_processor.get_color(foreground_color).name(), '#ffd700')
self.assertEqual(substring, 'Yellow')
self.assertEqual(self.processor.foreground_color, 3)
self.assertEqual(foreground_color, 3)
self.assertEqual(self.qt_processor.get_color(foreground_color).name(), '#ffd700')


else:
self.fail('Too many substrings.')
Expand Down

0 comments on commit f36e18b

Please sign in to comment.