Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbautista committed Jun 25, 2024
1 parent 7a1a34c commit ff43880
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qtconsole/tests/test_jupyter_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ def test_stylesheet_changed(self):
# By default, the background is light. White text is rendered as black
self.assertEqual(w._ansi_processor.get_color(15).name(), '#000000')

# Color code 40
self.assertEqual(w._ansi_processor.get_color(40).name(), '#37D737')

# Change to a dark colorscheme. White text is rendered as white
w.syntax_style = 'monokai'
self.assertEqual(w._ansi_processor.get_color(15).name(), '#ffffff')

# Color code 40
self.assertEqual(w._ansi_processor.get_color(40).name(), '#37D737')
# Color code 40 with monokai
self.assertEqual(w._ansi_processor.get_color(40).name(), '#00d700')

@pytest.mark.skipif(not sys.platform.startswith('linux'),
reason="Works only on Linux")
Expand Down

0 comments on commit ff43880

Please sign in to comment.