update colors (#140)

This commit is contained in:
Harrison Chase
2022-11-14 20:27:36 -08:00
committed by GitHub
parent 1a95252f00
commit bbb405a492
2 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ def test_chained_input_verbose() -> None:
chained_input.add("baz", color="blue")
sys.stdout = old_stdout
output = mystdout.getvalue()
assert output == "\x1b[104mbaz\x1b[0m"
assert output == "\x1b[48;5;51mbaz\x1b[0m"
assert chained_input.input == "foobarbaz"
@@ -70,5 +70,5 @@ def test_get_color_mapping_excluded_colors() -> None:
"""Test getting of color mapping with excluded colors."""
items = ["foo", "bar"]
output = get_color_mapping(items, excluded_colors=["blue"])
expected_output = {"foo": "yellow", "bar": "red"}
expected_output = {"foo": "yellow", "bar": "pink"}
assert output == expected_output