mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
fix: print platform detail lists as plain text
This commit is contained in:
1 parent
f033449766
commit
20937e688b
2 files changed
+27
-4
No files matched your search
@@ -73,6 +73,22 @@ class WikiSourceHeadings(unittest.TestCase):
|
||||
self.assertEqual(offenders, [])
|
||||
|
||||
|
||||
class PlatformDetails(unittest.TestCase):
|
||||
def test_lists_and_flags_read_as_prose(self):
|
||||
import generate_site
|
||||
|
||||
lines = generate_site._render_platform_details(
|
||||
{"platform_details": {"megacd": {
|
||||
"extensions_tried": [".bin", ".zip"],
|
||||
"hle_available": False,
|
||||
"root": "<system_dir>/x",
|
||||
}}}
|
||||
)
|
||||
self.assertIn(" - extensions_tried: .bin, .zip", lines)
|
||||
self.assertIn(" - hle_available: no", lines)
|
||||
self.assertIn(" - root: <system_dir>/x", lines)
|
||||
|
||||
|
||||
class RenderedSiteValidation(unittest.TestCase):
|
||||
def setUp(self) -> None:
|
||||
self.temp = tempfile.TemporaryDirectory(dir=TMP_ROOT)
|
||||
|
||||
Reference in new issue
Block a user