Skip to content

Commit

Permalink
modify rbg colors on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux committed Jun 26, 2024
1 parent 377ae66 commit b35dbbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/painter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def test_return_empty_string_when_unexisted_highlight(self):

def test_can_paint_rgb_color(self):
painter = Painter()
paint_color = painter.paint_color("255,22,200")
paint_color = painter.paint_color("255,255,255")

assert paint_color == f"{Fore.RGB_PREFIX}255;22;200{painter.SUFFIX}"
assert paint_color == f"{Fore.RGB_PREFIX}255;255;255{painter.SUFFIX}"

def test_paint_with_wrong_rgb_color(self):
painter = Painter()
Expand All @@ -62,9 +62,9 @@ def test_paint_with_wrong_rgb_color(self):

def test_can_paint_rgb_highlight(self):
painter = Painter()
paint_highlight = painter.paint_highlight("255,22,200")
paint_highlight = painter.paint_highlight("36,114,200")

assert paint_highlight == f"{Highlight.RGB_PREFIX}255;22;200{painter.SUFFIX}"
assert paint_highlight == f"{Highlight.RGB_PREFIX}36;114;200{painter.SUFFIX}"

def test_paint_with_wrong_rgb_highlight(self):
painter = Painter()
Expand Down

0 comments on commit b35dbbf

Please sign in to comment.