mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-17 15:17:52 -06:00
fix: describe platform pages by what they give
The meta description of each platform page was its summary followed by the label of a link, "ROCKNIX website.", and never said the page gives the BIOS files, their folder and the install command.
This commit is contained in:
1 parent
1ad6570468
commit
564bfe8b18
2 files changed
+16
No files matched your search
@@ -245,6 +245,16 @@ class Descriptions(unittest.TestCase):
|
||||
self.assertEqual(gs._page_description(body, key, "DaedalusX64"),
|
||||
"DaedalusX64 emulates Nintendo 64. Every file it reads comes with the app.")
|
||||
|
||||
def test_a_platform_page_says_what_it_gives(self) -> None:
|
||||
"""All 18 ended on the label of a link a snippet cannot follow,
|
||||
"ROCKNIX website.", and never named the BIOS files or their folder."""
|
||||
body = ("# ROCKNIX\n\nA system for handhelds. [ROCKNIX website](https://rocknix.org).\n\n"
|
||||
"## On the device { #install }\n")
|
||||
self.assertEqual(
|
||||
gs._page_description(body, Path("platforms/rocknix.md"), "ROCKNIX"),
|
||||
"The BIOS files for ROCKNIX, the folder they go in and the command that installs "
|
||||
"them. A system for handhelds.")
|
||||
|
||||
def test_a_console_page_is_described_by_its_start_line(self) -> None:
|
||||
body = "# Sega: Dreamcast\n\nPart of Sega.\n\n**Start with**: `dc_boot.bin`, `dc_flash.bin`.\n"
|
||||
text = gs._page_description(body, Path("systems/sega-dreamcast.md"), "Sega: Dreamcast")
|
||||
|
||||
Reference in new issue
Block a user