From f6727737d8a2b46d03311cb0cce51603f7ce16c4 Mon Sep 17 00:00:00 2001 From: Kevin Turner <83819+keturn@users.noreply.github.com> Date: Sun, 5 Jan 2020 15:26:34 -0800 Subject: [PATCH] test_reading_color_palette: specify colormode palette reading does not depend on terminal detection --- tests/test_core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index 516b394..60850ae 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -453,7 +453,6 @@ def test_colorful_obj_color_auto_detection(env, expected): os.environ = os_env_backup -@pytest.mark.skipif(not sys.stdout.isatty(), reason='fails without a tty') def test_reading_color_palette(tmpdir): """ Test reading color palette from file @@ -464,7 +463,7 @@ def test_reading_color_palette(tmpdir): 0 0 0 myBlack 255 255 255 myWhite""") - colorful = core.Colorful(colorpalette=str(palette_file)) + colorful = core.Colorful(colormode=terminal.ANSI_8_COLORS, colorpalette=str(palette_file)) assert str(colorful.myBlack) == '\033[30m' assert str(colorful.myWhite) == '\033[37m'