mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 20:08:51 -06:00
refactor: place systems by the section index
This commit is contained in:
1 parent
e79d2404bc
commit
437690d4a8
3 files changed
+61
-48
No files matched your search
@@ -115,6 +115,17 @@ class OtherSpellingsOfOneSystem(unittest.TestCase):
|
||||
manufacturers, {}, {"files": {}, "indexes": {}}, profiles)
|
||||
self.assertEqual(pages["commodore-pet"], ("commodore", "PET"))
|
||||
|
||||
def test_two_folders_spelled_alike_go_to_the_maker_the_id_names(self):
|
||||
"""Atari and Camputers both file a Lynx: the system names agreed on
|
||||
Atari's while the placement found no folder by its name."""
|
||||
from model.systemnames import console_index
|
||||
|
||||
index = places._FolderIndex(
|
||||
{"files": {}, "indexes": {}}, {},
|
||||
console_index({("Atari", "Lynx"), ("Camputers", "Lynx")}), {})
|
||||
self.assertEqual(index.place("atari-lynx", []), ("atari", "Lynx"))
|
||||
self.assertIsNone(index.place("lynx", []))
|
||||
|
||||
|
||||
class ACopyIsOnItsOwnFoldersPage(unittest.TestCase):
|
||||
"""The database keeps one path per content: the Channel F BIOS was on the
|
||||
|
||||
Reference in new issue
Block a user