mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-24 10:37:54 -06:00
refactor: system names and guides below packs
This commit is contained in:
1 parent
4037c537cc
commit
29f5c48a2c
44 files changed
+1437
-1382
No files matched your search
@@ -13,7 +13,7 @@ import tests
|
||||
import unittest
|
||||
from unittest import mock
|
||||
|
||||
import siterender
|
||||
from model import systemnames
|
||||
from generate_site import _render_platform_systems
|
||||
|
||||
A, B, C = "a" * 32, "b" * 32, "c" * 32
|
||||
@@ -36,7 +36,7 @@ class EachRowItsDeclaration(unittest.TestCase):
|
||||
],
|
||||
}
|
||||
names = {"psx": "Sony PlayStation", "saturn": "Sega Saturn"}
|
||||
with mock.patch.dict(siterender.SYSTEM_NAMES, names):
|
||||
with mock.patch.dict(systemnames.SYSTEM_NAMES, names):
|
||||
text = "\n".join(_render_platform_systems(by_system, config_files, {}))
|
||||
psx, saturn = text.split("saturn", 1)[0], text.split("saturn", 1)[1]
|
||||
self.assertIn(A, psx)
|
||||
|
||||
Reference in new issue
Block a user