()
| 16 | |
| 17 | |
| 18 | def test_render_single_branch(): |
| 19 | tree = Tree("foo") |
| 20 | tree.add("bar") |
| 21 | console = Console(color_system=None, width=20) |
| 22 | console.begin_capture() |
| 23 | console.print(tree) |
| 24 | result = console.end_capture() |
| 25 | print(repr(result)) |
| 26 | expected = "foo\n└── bar\n" |
| 27 | assert result == expected |
| 28 | |
| 29 | |
| 30 | def test_render_double_branch(): |
nothing calls this directly
no test coverage detected