mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
style optimization
This commit is contained in:
parent
ea2ed337f2
commit
2f752afaa9
19 changed files with 140 additions and 54 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue