Skip to content

Commit

Permalink
Correct release tests for de-publicization of name/value mappings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ubernostrum committed Jun 2, 2024
1 parent 6efdacf commit 9d79477
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions tests/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

# SPDX-License-Identifier: BSD-3-Clause
# pylint: disable=protected-access

import re
import unittest
Expand Down Expand Up @@ -47,7 +48,7 @@ def test_color_definitions(self):
"""
for color_name, color_value in self.html4_colors.items():
extracted = webcolors.HTML4_NAMES_TO_HEX[color_name.lower()]
extracted = webcolors._definitions.HTML4_NAMES_TO_HEX[color_name.lower()]
assert color_value.lower() == extracted


Expand Down Expand Up @@ -82,7 +83,7 @@ def test_color_definitions(self):
"""
for color_name, color_value in self.css21_colors.items():
extracted = webcolors.CSS21_NAMES_TO_HEX[color_name.lower()]
extracted = webcolors._definitions.CSS21_NAMES_TO_HEX[color_name.lower()]
assert color_value.lower() == extracted


Expand Down Expand Up @@ -133,7 +134,7 @@ def test_color_definitions(self):
"""
for color_name, color_values in self.css3_colors.items():
extracted_hex = webcolors.CSS3_NAMES_TO_HEX[color_name.lower()]
extracted_hex = webcolors._definitions.CSS3_NAMES_TO_HEX[color_name.lower()]
extracted_rgb = webcolors.name_to_rgb(color_name)
assert color_values["hex"].lower() == extracted_hex
assert color_values["rgb"] == extracted_rgb
Expand Down
3 changes: 2 additions & 1 deletion tests/test_html5.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"""

# SPDX-License-Identifier: BSD-3-Clause
# SPDX-License-Identifier: BSD-3-Claus
# pylint: disable=protected-access

import unittest

Expand Down

0 comments on commit 9d79477

Please sign in to comment.