From 4b92b517dd8d1ef14b42df54ff0d16bf414432d4 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 23 Oct 2026 19:36:22 +0200 Subject: [PATCH] fix: read the handheld section up to the next one --- tests/test_handheld_launchers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_handheld_launchers.py b/tests/test_handheld_launchers.py index e20c8700..4a6246d7 100644 --- a/tests/test_handheld_launchers.py +++ b/tests/test_handheld_launchers.py @@ -1556,7 +1556,9 @@ class TheDocs(unittest.TestCase): """muOS mounts the first card at /mnt/mmc (MustardOS internal mux_launch.sh, GET_VAR storage/rom/mount).""" text = (REPO_ROOT / "wiki" / "installer.md").read_text(encoding="utf-8") - section = text[text.index("## On a handheld"):text.index("## Without a network")] + start = text.index("## On a handheld") + end = text.find("\n## ", start + 1) + section = text[start:end if end != -1 else len(text)] self.assertNotIn("/mmc/MUOS", section.replace("/mnt/mmc", "")) self.assertIn("`MUOS/PortMaster/autoinstall/`", section)