()
| 26 | |
| 27 | |
| 28 | def test_rich() -> None: |
| 29 | color = Color.parse("red") |
| 30 | as_text = color.__rich__() |
| 31 | print(repr(as_text)) |
| 32 | print(repr(as_text.spans)) |
| 33 | assert as_text == Text( |
| 34 | "<color 'red' (standard)⬤ >", spans=[Span(23, 24, Style(color=color))] |
| 35 | ) |
| 36 | |
| 37 | |
| 38 | def test_system() -> None: |