different on win

This commit is contained in:
Will McGugan 2022-02-26 21:14:53 +00:00
parent 73c4cd3377
commit fd77772fbe
1 changed files with 2 additions and 2 deletions

View File

@ -91,10 +91,10 @@ def test_render_tree_win32():
width=20, force_terminal=True, color_system="standard", legacy_windows=True
)
console.begin_capture()
console.print(tree, justify="left")
console.print(tree)
result = console.end_capture()
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"
assert result == expected