mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 00:27:20 -05:00
fix: test the new setup labels and skip 3.8 builds
The site tests read the SHARE drive label and the line-mode wording from the source, and the pack-systems test needs generate_pack.py, which needs Python 3.9.
This commit is contained in:
1 parent
a67dc339bc
commit
8ab24a97d3
3 files changed
+5
-2
No files matched your search
@@ -7207,6 +7207,8 @@ class AuditSeventeenAndTen(unittest.TestCase):
|
||||
|
||||
# tui_audit_10 P2-4: a pack's own list records its systems.
|
||||
|
||||
@unittest.skipIf(sys.version_info < (3, 9),
|
||||
"generate_pack.py's context managers need Python 3.9")
|
||||
def test_a_pack_records_the_systems_of_its_files(self):
|
||||
sys.path.insert(0, str(REPO_ROOT / "scripts"))
|
||||
self.addCleanup(sys.path.remove, str(REPO_ROOT / "scripts"))
|
||||
|
||||
@@ -182,7 +182,8 @@ class FaqInstallsFromWhatYouHold(unittest.TestCase):
|
||||
with self.subTest(card=name):
|
||||
self.assertIn(name, known)
|
||||
source = (REPO_ROOT / "install.py").read_text(encoding="utf-8")
|
||||
self.assertIn('f"{card[2]} SD card ({_mount_name(mount)})"', source)
|
||||
self.assertIn('f"{card[2]} {kind} ({_mount_name(mount)})"', source)
|
||||
self.assertIn('else "SD card"', source)
|
||||
|
||||
def test_a_wiped_card_links_the_copy(self):
|
||||
section = self._section("Lost or wiped card?")
|
||||
|
||||
@@ -65,7 +65,7 @@ class NoSetupFoundGivesEachSystemItsFolder(unittest.TestCase):
|
||||
|
||||
def test_the_label_is_the_installer_message(self):
|
||||
self.assertIn("**`No supported platform detected`:**", self.section)
|
||||
self.assertIn('print(" No supported platform detected.")', INSTALL_PY)
|
||||
self.assertIn('else " No supported platform detected.")', INSTALL_PY)
|
||||
|
||||
def test_the_lead_names_the_menu(self):
|
||||
self.assertIn("Not sure? Open RetroArch's **Settings > Directory > System/BIOS**",
|
||||
|
||||
Reference in new issue
Block a user