Skip to content

Commit

Permalink
refactor: tests: color: Rename variable to avoid conflict with class.
Browse files Browse the repository at this point in the history
This commit renames the expanded `Color` Enum of `test_color_properties`
to avoid conflict with the input `Color` Enum, to `ExpandedColor`.
  • Loading branch information
prah23 authored and neiljp committed Jul 25, 2021
1 parent 6cfe4b2 commit 5b76aa8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/config/test_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ def test_color_properties():
class Color(Enum):
WHITE = "wh #256 #24"

Color = color_properties(Color, "BOLD", "ITALICS")
ExpandedColor = color_properties(Color, "BOLD", "ITALICS")

assert Color.WHITE in Color
assert Color.WHITE.value == "wh #256 #24"
assert Color.WHITE__BOLD_ITALICS in Color
assert Color.WHITE__BOLD_ITALICS.value == "wh #256 #24 , bold , italics"
assert ExpandedColor.WHITE in ExpandedColor
assert ExpandedColor.WHITE.value == "wh #256 #24"
assert ExpandedColor.WHITE__BOLD_ITALICS in ExpandedColor
assert ExpandedColor.WHITE__BOLD_ITALICS.value == "wh #256 #24 , bold , italics"

0 comments on commit 5b76aa8

Please sign in to comment.