From 740c4ce61b271b02526683f2053771fd4f293e6a Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Wed, 4 May 2022 11:26:59 +0100 Subject: [PATCH] move tint --- tests/test_tint.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 tests/test_tint.py diff --git a/tests/test_tint.py b/tests/test_tint.py deleted file mode 100644 index 52e54aa60..000000000 --- a/tests/test_tint.py +++ /dev/null @@ -1,17 +0,0 @@ -import io - -from rich.console import Console -from rich.text import Text - -from textual.color import Color -from textual.renderables.tint import Tint - - -def test_tint(): - console = Console(file=io.StringIO(), force_terminal=True, color_system="truecolor") - renderable = Text.from_markup("[#aabbcc on #112233]foo") - console.print(Tint(renderable, Color(0, 100, 0, 0.5))) - output = console.file.getvalue() - print(repr(output)) - expected = "\x1b[38;2;85;143;102;48;2;8;67;25mfoo\x1b[0m\n" - assert output == expected