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