fix: a left-out folder carries its reason

This commit is contained in:
Abdessamad Derraz committed 2026-11-24 03:39:00 +01:00
1 parent e7b9acb425
commit dec7d4bc05
19 files changed
+324 -130

No files matched your search

+4 -4
View File
@@ -512,15 +512,15 @@ class TheInstallerFindsTheSaveDirectory(unittest.TestCase):
for key in ("savefiles_in_content_dir", "sort_savefiles_by_content_enable"):
with self.subTest(key=key):
found = self.place(f'{key} = "true"\n')
self.assertIsInstance(found, str)
self.assertIn(key, found)
self.assertIsInstance(found, install.SaveUnknown)
self.assertIn(key, found.cause)
def test_without_a_config(self):
self.assertEqual(self.place(None), install.SavePlace(self.app / "saves", True))
other = self.root / "BIOS"
found = install.save_directory_for(other, self.MANIFEST)
self.assertIsInstance(found, str)
self.assertIn("--save-dir", found)
self.assertIsInstance(found, install.SaveUnknown)
self.assertIn("--save-dir", found.words)
self.assertEqual(install.save_directory_for(other, self.MANIFEST, self.root / "s"),
install.SavePlace(self.root / "s", True))