mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 10:37:54 -06:00
fix: ask folder questions through one reader
The copy question, the card question and the BIOS folder question each read q, Enter, a listed number or a folder. With no drive listed, the copy question took "2" as the folder ./2. They share one reader now, and the y/N questions read only y or yes: "yeah" created folders.
This commit is contained in:
1 parent
1f215f1732
commit
7b89a558ff
10 files changed
+127
-130
No files matched your search
@@ -577,6 +577,12 @@ class AMissingDestIsSaid(unittest.TestCase):
|
||||
self.assertFalse((root / "retroarh").exists())
|
||||
self.assertEqual(self._call(dest, True, "y")[1], None)
|
||||
|
||||
def test_only_y_or_yes_creates_the_folders(self):
|
||||
# A default-no question read "yeah" as yes, as no other one does.
|
||||
root = Path(_tempdir(self))
|
||||
self.assertEqual(self._call(root / "a" / "b", True, "yeah")[1], 2)
|
||||
self.assertFalse((root / "a").exists())
|
||||
|
||||
def test_one_missing_level_or_no_terminal_is_said_not_asked(self):
|
||||
root = Path(_tempdir(self))
|
||||
# A "no" that was asked would stop the run with 2. Said with
|
||||
|
||||
Reference in new issue
Block a user