File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 5
5
"""
6
6
7
7
# SPDX-License-Identifier: BSD-3-Clause
8
+ # pylint: disable=protected-access
8
9
9
10
import re
10
11
import unittest
@@ -47,7 +48,7 @@ def test_color_definitions(self):
47
48
48
49
"""
49
50
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 ()]
51
52
assert color_value .lower () == extracted
52
53
53
54
@@ -82,7 +83,7 @@ def test_color_definitions(self):
82
83
83
84
"""
84
85
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 ()]
86
87
assert color_value .lower () == extracted
87
88
88
89
@@ -133,7 +134,7 @@ def test_color_definitions(self):
133
134
134
135
"""
135
136
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 ()]
137
138
extracted_rgb = webcolors .name_to_rgb (color_name )
138
139
assert color_values ["hex" ].lower () == extracted_hex
139
140
assert color_values ["rgb" ] == extracted_rgb
Original file line number Diff line number Diff line change 3
3
4
4
"""
5
5
6
- # SPDX-License-Identifier: BSD-3-Clause
6
+ # SPDX-License-Identifier: BSD-3-Claus
7
+ # pylint: disable=protected-access
7
8
8
9
import unittest
9
10
You can’t perform that action at this time.
0 commit comments