From aded24dbcc6a56170e954c247bf2807fbe19c278 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:44:44 +0100 Subject: [PATCH] fix: read the split installer shapes in two tests --- tests/test_doc_pages.py | 2 +- tests/test_install_tui.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_doc_pages.py b/tests/test_doc_pages.py index 72caa8d1c..c5b3bb252 100644 --- a/tests/test_doc_pages.py +++ b/tests/test_doc_pages.py @@ -856,7 +856,7 @@ class FirstInstallWalkthrough(unittest.TestCase): for ending in ("Done", "Finished with errors", "Nothing installed"): with self.subTest(ending=ending): self.assertIn(f"**{ending}**", _section(self.text, "5. Read the result")) - self.assertIn(f'title = "{ending}"', source) + self.assertRegex(source, rf'return \(?"{ending}",') self.assertNotRegex(self.text, r"\d+ (in place|missing|files installed)") self.assertIn(f" {install.EVERYTHING_IN_PLACE}", self.text) step3 = _generated(self.run, "run-index") diff --git a/tests/test_install_tui.py b/tests/test_install_tui.py index ed7634160..d899d53cd 100644 --- a/tests/test_install_tui.py +++ b/tests/test_install_tui.py @@ -7397,8 +7397,8 @@ class WhatEachScreenOffers(unittest.TestCase): the collection for the file whose save directory is unknown.""" menus = [] - def menu(_plat, files, *_rest, **_named): - menus.append([entry["dest"] for entry in files]) + def menu(context, **_named): + menus.append([entry["dest"] for entry in context.files]) return with SaveDirectoryRepository() as repo: