mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 18:17:53 -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
@@ -12,6 +12,7 @@ from unittest import mock
|
||||
import yaml
|
||||
|
||||
import siterender
|
||||
from model import systemnames
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
@@ -380,7 +381,7 @@ class TheSearchLandsOnTheCard(unittest.TestCase):
|
||||
by_system = {f"system-{i:02d}": [{"name": f"f{i}.bin", "status": "ok"}]
|
||||
for i in range(11)}
|
||||
names = {sys_id: f"System {sys_id[-2:]}" for sys_id in by_system}
|
||||
with mock.patch.dict(siterender.SYSTEM_NAMES, names):
|
||||
with mock.patch.dict(systemnames.SYSTEM_NAMES, names):
|
||||
lines = generate_site._render_platform_systems(by_system, {}, {})
|
||||
headings = [line for line in lines if line.startswith("### ")]
|
||||
self.assertEqual(len(headings), 11)
|
||||
|
||||
Reference in new issue
Block a user