mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-18 09:23:26 -05:00
feat: give each collection card its path and link
This commit is contained in:
1 parent
c0e0da03a6
commit
cf121d028e
3 files changed
+50
-3
No files matched your search
@@ -4515,5 +4515,24 @@ class UnsourceableCardSaysWhy(unittest.TestCase):
|
||||
self.assertIn("../gaps.md#acknowledged-gaps", text)
|
||||
|
||||
|
||||
|
||||
class CollectionCardsSayWhereToGetTheFile(unittest.TestCase):
|
||||
"""A system page card gave the hashes, readers and provenance of
|
||||
scph5501.bin and no path or link to the bytes."""
|
||||
|
||||
def test_raw_and_release_asset_urls(self):
|
||||
import scripts.generate_site as site
|
||||
|
||||
site._RELEASE_ASSET_NAMES = None
|
||||
self.addCleanup(setattr, site, "_RELEASE_ASSET_NAMES", None)
|
||||
self.assertEqual(
|
||||
site._fetch_url("bios/Sony/PlayStation/scph5501.bin"),
|
||||
"https://raw.githubusercontent.com/Abdess/retrobios/main/bios/Sony/PlayStation/scph5501.bin",
|
||||
)
|
||||
self.assertTrue(site._fetch_url("bios/Arcade/MAME/MAME 0.174 Arcade XML.dat").endswith(
|
||||
"/releases/download/large-files/MAME.0.174.Arcade.XML.dat"
|
||||
))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -351,7 +351,7 @@ class AVariantShowsWhoPinsIt(unittest.TestCase):
|
||||
page = generate_site.generate_system_page(
|
||||
"Entex", {"Adventure Vision": [primary, variant]}, consumers)
|
||||
block = page[page.index('??? note "Variants (1)"'):]
|
||||
self.assertIn(" - Stored as: `advision.zip.1c086064`", block)
|
||||
self.assertIn(" - Collection path: `bios/Entex/Adventure Vision/.variants/advision.zip.1c086064`", block)
|
||||
self.assertIn("[batocera](../platforms/batocera.md)", block)
|
||||
self.assertIn("[retrobat](../platforms/retrobat.md)", block)
|
||||
self.assertIn('title="' + "c" * 40 + '"', block)
|
||||
|
||||
Reference in new issue
Block a user