()
| 6 | |
| 7 | |
| 8 | def test_styled(): |
| 9 | styled_foo = Styled("foo", "on red") |
| 10 | console = Console(file=io.StringIO(), force_terminal=True, _environ={}) |
| 11 | assert Measurement.get(console, console.options, styled_foo) == Measurement(3, 3) |
| 12 | console.print(styled_foo) |
| 13 | result = console.file.getvalue() |
| 14 | expected = "\x1b[41mfoo\x1b[0m\n" |
| 15 | assert result == expected |
nothing calls this directly
no test coverage detected