mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-29 12:58:51 -06:00
refactor: public names for cross-module reads
This commit is contained in:
1 parent
f371790dc6
commit
3853ca2f1c
254 files changed
+2955
-2969
No files matched your search
@@ -14,7 +14,7 @@ import unittest
|
||||
from unittest import mock
|
||||
|
||||
from model import systemnames
|
||||
from sitegen.platformfiles import _render_platform_systems
|
||||
from sitegen.platformfiles import render_platform_systems
|
||||
|
||||
A, B, C = "a" * 32, "b" * 32, "c" * 32
|
||||
|
||||
@@ -37,7 +37,7 @@ class EachRowItsDeclaration(unittest.TestCase):
|
||||
}
|
||||
names = {"psx": "Sony PlayStation", "saturn": "Sega Saturn"}
|
||||
with mock.patch.dict(systemnames.SYSTEM_NAMES, names):
|
||||
text = "\n".join(_render_platform_systems(by_system, config_files, {}))
|
||||
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)
|
||||
self.assertNotIn(B, psx)
|
||||
|
||||
Reference in new issue
Block a user