mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
feat: manage several Steam libraries beside internal and the card (#1967)
* feat: manage several Steam libraries beside internal and the card * fix: serialize Steam library registry edits, refuse folders inside a Games root, refresh games after changes * fix: rename refreshes games, added x86-64 libraries join redist seeding and direct mapping
This commit is contained in:
1 parent
c5577478ca
commit
e30e722f8b
16 files changed
+358
-9
No files matched your search
@@ -90,6 +90,20 @@ class LibraryListTest(unittest.TestCase):
|
||||
self.assertIn(self.pc, self.paths(self.run_main()))
|
||||
self.assertIn(self.card, self.paths(self.vdf.read_text()))
|
||||
|
||||
def test_added_library_is_registered_while_listed_and_forgotten_once_removed(self):
|
||||
added = self.root / "lib" / "1"
|
||||
manifest(added / "steamapps", 20)
|
||||
with patch.object(library, "ADDED_DIR", str(self.root / "lib") + "/"):
|
||||
self.listing.write_text(json.dumps([{"path": str(added), "label": "Documents"}]))
|
||||
text = self.run_main()
|
||||
self.assertIn(added, self.paths(text))
|
||||
self.assertIn('"20"\t\t"0"', text)
|
||||
self.listing.write_text(json.dumps([]))
|
||||
text = self.run_main()
|
||||
self.assertNotIn(added, self.paths(text))
|
||||
self.assertIn(self.user, self.paths(text))
|
||||
self.assertTrue((added / "steamapps/appmanifest_20.acf").is_file())
|
||||
|
||||
def test_without_a_list_only_the_card_is_managed(self):
|
||||
text = self.run_main(listing=False)
|
||||
self.assertEqual([self.steam, self.old, self.user, self.card], self.paths(text))
|
||||
|
||||
Reference in new issue
Block a user