mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 01:13:30 -05:00
fix: offer every platform in the missing BIOS form
This commit is contained in:
1 parent
08730575aa
commit
20bdd381ec
2 files changed
+24
No files matched your search
@@ -39,6 +39,11 @@ body:
|
||||
- EmuDeck
|
||||
- Lakka
|
||||
- RetroPie
|
||||
- RetroDECK
|
||||
- RomM
|
||||
- ROCKNIX
|
||||
- BizHawk
|
||||
- MiSTer FPGA
|
||||
- Other
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -3495,5 +3495,24 @@ class ThePipelineTableNamesEveryStep(unittest.TestCase):
|
||||
self.assertEqual(labels - documented, set())
|
||||
|
||||
|
||||
|
||||
class TheIssueFormListsEveryPlatform(unittest.TestCase):
|
||||
"""The missing-BIOS form offered 7 of the 12 registered platforms."""
|
||||
|
||||
def test_every_registered_platform_is_an_option(self):
|
||||
from scripts.common import list_registered_platforms, load_platform_config
|
||||
|
||||
form = yaml.safe_load(
|
||||
(ROOT / ".github" / "ISSUE_TEMPLATE" / "missing-bios.yml").read_text()
|
||||
)
|
||||
options = next(
|
||||
item["attributes"]["options"] for item in form["body"]
|
||||
if item.get("id") == "platform"
|
||||
)
|
||||
for name in list_registered_platforms(str(ROOT / "platforms"), include_archived=True):
|
||||
display = load_platform_config(name, str(ROOT / "platforms"))["platform"]
|
||||
self.assertIn(display, options)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user