style optimization

This commit is contained in:
Will McGugan 2021-03-01 19:42:00 +00:00
parent ea2ed337f2
commit 2f752afaa9
19 changed files with 140 additions and 54 deletions

View file

@ -38,7 +38,7 @@ def test_rich_console(live_render):
encoding="utf-8",
)
rich_console = live_render.__rich_console__(Console(), options)
assert [Segment("my string", Style.parse("none"))] == list(rich_console)
assert [Segment("my string", None)] == list(rich_console)
live_render.style = "red"
rich_console = live_render.__rich_console__(Console(), options)
assert [Segment("my string", Style.parse("red"))] == list(rich_console)