(live_render)
| 29 | |
| 30 | |
| 31 | def test_rich_console(live_render): |
| 32 | options = ConsoleOptions( |
| 33 | ConsoleDimensions(80, 25), |
| 34 | max_height=25, |
| 35 | legacy_windows=False, |
| 36 | min_width=10, |
| 37 | max_width=20, |
| 38 | is_terminal=False, |
| 39 | encoding="utf-8", |
| 40 | ) |
| 41 | rich_console = live_render.__rich_console__(Console(), options) |
| 42 | assert [Segment("my string", None)] == list(rich_console) |
| 43 | live_render.style = "red" |
| 44 | rich_console = live_render.__rich_console__(Console(), options) |
| 45 | assert [Segment("my string", Style.parse("red"))] == list(rich_console) |
nothing calls this directly
no test coverage detected