()
| 135 | |
| 136 | |
| 137 | def test_rich_pretty() -> None: |
| 138 | console = Console() |
| 139 | with console.capture() as capture: |
| 140 | console.print(Foo("hello", bar=3)) |
| 141 | result = capture.get() |
| 142 | expected = "Foo('hello', 'hello', bar=3, egg=1)\n" |
| 143 | assert result == expected |
| 144 | |
| 145 | |
| 146 | def test_rich_pretty_angular() -> None: |