mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-16 14:47:49 -06:00
fix: name --from-pack and the packs beside a typo
This commit is contained in:
1 parent
3d694c7d70
commit
fd36670532
5 files changed
+33
-11
No files matched your search
@@ -4048,6 +4048,20 @@ def _install_run(env: dict, *argv: str, **kwargs) -> subprocess.CompletedProcess
|
||||
)
|
||||
|
||||
|
||||
class AMissingPackNamesTheOptionAndThePacksBeside(unittest.TestCase):
|
||||
"""A typo in --from-pack said "Error: X does not exist": not the option,
|
||||
not the pack sitting next to the name typed."""
|
||||
|
||||
def test_the_pack_beside_is_named(self):
|
||||
folder = Path(_tempdir(self))
|
||||
(folder / "RetroArch_BIOS_Pack.zip").write_bytes(b"")
|
||||
with self.assertRaises(ValueError) as raised:
|
||||
install.PackSource._resolve([folder / "RetroArch_BIOS_Pak.zip"])
|
||||
said = str(raised.exception)
|
||||
self.assertIn("--from-pack names a pack ZIP", said)
|
||||
self.assertIn(f"The packs in {folder}: RetroArch_BIOS_Pack.zip.", said)
|
||||
|
||||
|
||||
class RomMIsToldToScan(unittest.TestCase, _LoopbackRun):
|
||||
"""RomM serves the firmware its library scan records, and the run ended
|
||||
on "installed" with no word of the scan the player waits on."""
|
||||
|
||||
Reference in new issue
Block a user