mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-05 01:23:45 -06:00
fix: show the sha256 a platform declares
This commit is contained in:
1 parent
435564c728
commit
4d360c3cc1
2 files changed
+16
-2
No files matched your search
@@ -500,6 +500,15 @@ class PlatformPagesCarryTheirDeclarations(unittest.TestCase):
|
||||
self.assertEqual(part["identifier"], ["md5:490f666e"])
|
||||
self.assertTrue(part["url"].endswith("platforms/batocera/#sony-playstation"))
|
||||
|
||||
def test_a_declared_sha256_is_published(self):
|
||||
"""RetroDECK's dsifirmware.bin sha256 lived in the CSV exports only."""
|
||||
from generate_site import platform_structured_data
|
||||
|
||||
data = platform_structured_data("retrodeck", {"platform": "RetroDECK", "config": {
|
||||
"systems": {"nds": {"files": [
|
||||
{"name": "dsifirmware.bin", "sha256": "11A150E3"}]}}}})
|
||||
self.assertEqual(data["hasPart"][0]["identifier"], ["sha256:11a150e3"])
|
||||
|
||||
|
||||
|
||||
class AnEmulatorPageLinksItsProfile(unittest.TestCase):
|
||||
|
||||
Reference in new issue
Block a user