refactor: system names and guides below packs

This commit is contained in:
Abdessamad Derraz committed 2026-11-18 19:31:27 +01:00
1 parent 4037c537cc
commit 29f5c48a2c
44 files changed
+1437 -1382

No files matched your search

+2 -1
View File
@@ -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)