mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 07:33:45 -06:00
fix: which-pack names the first screen in brief
The sentence fits the page's 400-word ceiling and its 20-word sentences. A test reading the site generator skips under Python 3.8, as the others do, and the core plan test names the cores --core gave.
This commit is contained in:
1 parent
ea214d9c01
commit
8e811582c1
3 files changed
+8
-7
No files matched your search
@@ -3941,12 +3941,10 @@ def first_screen_words() -> list[str]:
|
||||
since."""
|
||||
installer = _installer()
|
||||
# The screen it opens first: the setup found, or the list when none
|
||||
# is. Install and Choose systems come on the next one (tui_audit_16
|
||||
# P3-10).
|
||||
return [f"The command asks **{installer.TUI_FOUND_TITLE}** with the setup it found, "
|
||||
f"or **{installer.TUI_CHOOSE_TITLE}** with a list when it finds none. Then "
|
||||
f"**{installer.TUI_INSTALL_ROW}** gets every file, "
|
||||
f"**{installer.TUI_SYSTEMS_ROW}** only the consoles you pick."]
|
||||
# is. Install comes on the next one, Choose systems beside it and named
|
||||
# above on the page (tui_audit_16 P3-10).
|
||||
return [f"It asks **{installer.TUI_FOUND_TITLE}** (or **{installer.TUI_CHOOSE_TITLE}**), "
|
||||
f"then offers **{installer.TUI_INSTALL_ROW}**."]
|
||||
|
||||
|
||||
def check_pass_line() -> str:
|
||||
|
||||
@@ -9880,6 +9880,7 @@ class AuditEighteenAndEleven(_CardFixtures, unittest.TestCase):
|
||||
"""P3-11."""
|
||||
state = checked_state()
|
||||
state.cli_systems, state.cores, state.regions = ["sony-playstation"], ["x"], ["us"]
|
||||
state.cli_cores = ["x"]
|
||||
text = " ".join(" ".join(install.tui_view(state, 120, 40)).split())
|
||||
self.assertIn("(--system), --core, --region.", text)
|
||||
|
||||
@@ -13934,6 +13935,8 @@ class AuditTwentyThreeAndSixteen(unittest.TestCase):
|
||||
|
||||
# Root cause 6: the pages say what the installer shows.
|
||||
|
||||
@unittest.skipIf(sys.version_info < (3, 9),
|
||||
"the site generator needs Python 3.9")
|
||||
def test_which_pack_names_the_first_screen(self):
|
||||
"""tui_audit_16 P3-10: which-pack said the command opens a screen
|
||||
where Install and Choose systems are, the second screen."""
|
||||
|
||||
@@ -167,7 +167,7 @@ class GetYourFilesOrder(unittest.TestCase):
|
||||
text = _page("which-pack.md")
|
||||
order = [text.index(mark) for mark in (
|
||||
"## Pick your setup", "| Setup | Runs on | BIOS folder | ZIP |", "<FilePicker",
|
||||
"## Not in the list? One command finds it", "The command asks **",
|
||||
"## Not in the list? One command finds it", "It asks **",
|
||||
"<summary>Is it safe?</summary>",
|
||||
)]
|
||||
self.assertEqual(order, sorted(order))
|
||||
|
||||
Reference in new issue
Block a user