mirror of https://github.com/Textualize/rich.git
different on win
This commit is contained in:
parent
73c4cd3377
commit
fd77772fbe
|
@ -91,7 +91,7 @@ def test_render_tree_win32():
|
||||||
width=20, force_terminal=True, color_system="standard", legacy_windows=True
|
width=20, force_terminal=True, color_system="standard", legacy_windows=True
|
||||||
)
|
)
|
||||||
console.begin_capture()
|
console.begin_capture()
|
||||||
console.print(tree, justify="left")
|
console.print(tree)
|
||||||
result = console.end_capture()
|
result = console.end_capture()
|
||||||
print(repr(result))
|
print(repr(result))
|
||||||
expected = "foo\n├── \x1b[3mbar\x1b[0m\n\x1b[44m├── \x1b[0m\x1b[44mbaz\x1b[0m\n\x1b[44m│ \x1b[0m\x1b[31;44m├── \x1b[0m\x1b[44m1\x1b[0m\n\x1b[44m│ \x1b[0m\x1b[31;44m└── \x1b[0m\x1b[44m2\x1b[0m\n└── egg\n"
|
expected = "foo\n├── \x1b[3mbar\x1b[0m\n\x1b[44m├── \x1b[0m\x1b[44mbaz\x1b[0m\n\x1b[44m│ \x1b[0m\x1b[31;44m├── \x1b[0m\x1b[44m1\x1b[0m\n\x1b[44m│ \x1b[0m\x1b[31;44m└── \x1b[0m\x1b[44m2\x1b[0m\n└── egg\n"
|
||||||
|
|
Loading…
Reference in New Issue