fix: list a short set of names in full

The declared-names test now builds its own platform: Batocera files the BK under elektronika-bk since its slug map was completed, so the real data no longer shows two ids for one name.
This commit is contained in:
Abdessamad Derraz committed 2026-10-17 13:21:14 +02:00
1 parent dbcd26d3ab
commit 0ea8bb4e99
3 files changed
+38 -22

No files matched your search

+4 -1
View File
@@ -173,7 +173,10 @@ class ATypoGetsTheNearestNames(unittest.TestCase):
["3do", "apple-ii", "sony-playstation"], "--list-systems")
self.assertEqual(hint, "Did you mean: sony-playstation? --list-systems lists all 3.")
self.assertEqual(common.suggest_names(["zzz"], ["3do"], "--list-systems"),
"--list-systems lists all 1.")
"Known: 3do.")
many = [f"system-{i}" for i in range(40)]
self.assertEqual(common.suggest_names(["zzz"], many, "--list-systems"),
"--list-systems lists all 40.")
if __name__ == "__main__":
unittest.main()