From 9d79477f4250e863cdd38cb89e937057370bf880 Mon Sep 17 00:00:00 2001 From: James Bennett Date: Sun, 2 Jun 2024 00:35:45 -0700 Subject: [PATCH] Correct release tests for de-publicization of name/value mappings. --- tests/definitions.py | 7 ++++--- tests/test_html5.py | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/definitions.py b/tests/definitions.py index 2b9c3cb..d8f9f1a 100644 --- a/tests/definitions.py +++ b/tests/definitions.py @@ -5,6 +5,7 @@ """ # SPDX-License-Identifier: BSD-3-Clause +# pylint: disable=protected-access import re import unittest @@ -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 @@ -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 @@ -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 diff --git a/tests/test_html5.py b/tests/test_html5.py index b287457..f2a51c3 100644 --- a/tests/test_html5.py +++ b/tests/test_html5.py @@ -3,7 +3,8 @@ """ -# SPDX-License-Identifier: BSD-3-Clause +# SPDX-License-Identifier: BSD-3-Claus +# pylint: disable=protected-access import unittest