diff --git a/tests/test_tree.py b/tests/test_tree.py index 3019c1c8..c8465a97 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -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