Always output HTML colors as hex codes.

This commit is contained in:
Denis Kasak 2018-03-02 15:32:04 +01:00 committed by poljar
parent 8bb383220f
commit d7485cc746
2 changed files with 23 additions and 27 deletions

View file

@ -22,5 +22,6 @@ def test_prism():
@given(sampled_from(first_16_html_colors))
def test_color_conversion(color_name):
assert color_weechat_to_html(
color_html_to_weechat(color_name)) == color_name
hex_color = color_weechat_to_html(color_html_to_weechat(color_name))
new_color_name = webcolors.hex_to_name(hex_color, spec='html4')
assert new_color_name == color_name