Skip to content

Commit 9d79477

Browse files
committed
Correct release tests for de-publicization of name/value mappings.
1 parent 6efdacf commit 9d79477

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/definitions.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
# SPDX-License-Identifier: BSD-3-Clause
8+
# pylint: disable=protected-access
89

910
import re
1011
import unittest
@@ -47,7 +48,7 @@ def test_color_definitions(self):
4748
4849
"""
4950
for color_name, color_value in self.html4_colors.items():
50-
extracted = webcolors.HTML4_NAMES_TO_HEX[color_name.lower()]
51+
extracted = webcolors._definitions.HTML4_NAMES_TO_HEX[color_name.lower()]
5152
assert color_value.lower() == extracted
5253

5354

@@ -82,7 +83,7 @@ def test_color_definitions(self):
8283
8384
"""
8485
for color_name, color_value in self.css21_colors.items():
85-
extracted = webcolors.CSS21_NAMES_TO_HEX[color_name.lower()]
86+
extracted = webcolors._definitions.CSS21_NAMES_TO_HEX[color_name.lower()]
8687
assert color_value.lower() == extracted
8788

8889

@@ -133,7 +134,7 @@ def test_color_definitions(self):
133134
134135
"""
135136
for color_name, color_values in self.css3_colors.items():
136-
extracted_hex = webcolors.CSS3_NAMES_TO_HEX[color_name.lower()]
137+
extracted_hex = webcolors._definitions.CSS3_NAMES_TO_HEX[color_name.lower()]
137138
extracted_rgb = webcolors.name_to_rgb(color_name)
138139
assert color_values["hex"].lower() == extracted_hex
139140
assert color_values["rgb"] == extracted_rgb

tests/test_html5.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
44
"""
55

6-
# SPDX-License-Identifier: BSD-3-Clause
6+
# SPDX-License-Identifier: BSD-3-Claus
7+
# pylint: disable=protected-access
78

89
import unittest
910

0 commit comments

Comments
 (0)