From 8844b30fb25b30405db7a2fdc65b1c42eca25bec Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 3 Nov 2026 15:32:42 +0100 Subject: [PATCH] fix: read the folder tail on a crowded screen --- tests/test_install_tui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_install_tui.py b/tests/test_install_tui.py index 0c62f9de0..6500f5498 100644 --- a/tests/test_install_tui.py +++ b/tests/test_install_tui.py @@ -13968,8 +13968,10 @@ class AuditTwentyThreeAndSixteen(unittest.TestCase): folder = str(state.folder_default) self.assertIn("reads its BIOS files", small) # The folder wraps after a separator wherever the temporary - # path's length puts it: read it with the line breaks out. - self.assertIn(folder, "".join(small.split())) + # path's length puts it, and a long one keeps its last + # folders after "...": read its tail with the breaks out. + tail = "/".join(Path(folder).parts[-2:]) + self.assertIn(tail, "".join(small.split())) # The owner's note: Cores drew every box empty when no core narrows the # run, read as "nothing is ticked, tick them all".