mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-20 18:59:07 -05:00
feat: commit the corrected file of each platform
exports/ now holds the twelve platforms' own files, corrected, with a report of every change, read by the site's corrected files page. Two summaries are reworded for the page: an addition the format cannot carry is counted as left out, and RetroPie names each skipped package by sentence instead of joining reasons with semicolons. Its parser no longer reads "e.g" as a file name.
This commit is contained in:
1 parent
b3b3880c19
commit
b6a1304893
39 files changed
+32056
-7
No files matched your search
@@ -104,5 +104,25 @@ class CorrectedFilesPage(unittest.TestCase):
|
||||
self.assertIn('"exports/**"', workflow)
|
||||
|
||||
|
||||
class SummariesReadAsSentences(unittest.TestCase):
|
||||
"""The page shows each run's summary. RetroPie's joined its parts with
|
||||
semicolons and read fs-uae's "(e.g, kick13.rom)" as two file names."""
|
||||
|
||||
def test_an_abbreviation_is_not_a_file_name(self):
|
||||
from exporter.retropie_exporter import Exporter as RetroPieExporter
|
||||
|
||||
names = RetroPieExporter._listed("BIOS files (e.g, kick13.rom) i.e. Kickstart")
|
||||
self.assertEqual(names, {"kick13.rom"})
|
||||
|
||||
def test_retropie_outcome_has_no_semicolon(self):
|
||||
from exporter.retropie_exporter import Exporter as RetroPieExporter
|
||||
|
||||
exporter = RetroPieExporter()
|
||||
exporter._skipped = {"names no file to extend": ["fs-uae", "amiberry"]}
|
||||
text = exporter.outcome({}, {"a.sh": ""})
|
||||
self.assertNotIn(";", text)
|
||||
self.assertIn("amiberry, fs-uae: names no file to extend", text)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user