mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-08 19:13:47 -06:00
fix: keep full lists in check_freshness JSON
This commit is contained in:
1 parent
6dc373fcfd
commit
fd6db086d3
2 files changed
+33
-5
No files matched your search
@@ -404,5 +404,23 @@ class TheBuildbotIndexIsRead(unittest.TestCase):
|
||||
self.assertEqual([e["zip"] for e in cbs.pending(report)], ["New.zip"])
|
||||
|
||||
|
||||
|
||||
class RowsSayAllTheyStandFor(unittest.TestCase):
|
||||
"""A row with no remote value ended on an arrow to nothing, and the 50
|
||||
RetroPie cores without a profile were cut to 12, in --json too."""
|
||||
|
||||
def test_no_arrow_without_a_remote_value(self):
|
||||
text = cf.render([
|
||||
cf.Finding("native", "emudeck", "OK", local="1 file(s)"),
|
||||
])
|
||||
self.assertNotIn("->", text)
|
||||
|
||||
def test_json_carries_every_unresolved_name(self):
|
||||
missing = {f"core{i:02d}": [] for i in range(50)}
|
||||
(row,) = cf._unresolved_findings("retropie", missing)
|
||||
self.assertEqual(len(row.items), 50)
|
||||
self.assertIn("--json lists all 50", row.detail)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user