We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f10f42b commit 3bc0070Copy full SHA for 3bc0070
1 file changed
tests/test_pt_utils.py
@@ -642,6 +642,13 @@ class TestRichToPtStyle:
642
def test_rich_to_pt_style_none(self):
643
assert pt_utils.rich_to_pt_style(None) == ""
644
645
+ def test_rich_to_pt_style_string(self):
646
+ pt_style = pt_utils.rich_to_pt_style("bold red on blue")
647
+ assert "fg:ansired" in pt_style
648
+ assert "bg:ansiblue" in pt_style
649
+ assert "bold" in pt_style
650
+ assert "nobold" not in pt_style
651
+
652
def test_rich_to_pt_style_color(self):
653
from rich.style import Style
654
0 commit comments