mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-13 05:23:51 -06:00
fix: type the lists and returns mypy flagged
The data tree record carries the needed flag since 072380c26, and
the manifest test still built the three-part one. profile_sync's triage
lists and _emit's returns, site_insights' GoatCounter answers and
make_demo's blocks are annotated, and the baseline loses the entry
that no longer occurs.
This commit is contained in:
1 parent
5730380d12
commit
ae7feba539
5 files changed
+13
-9
No files matched your search
@@ -318,11 +318,12 @@ class TheManifestCarriesTheArchiveSize(unittest.TestCase):
|
||||
registry = {ref: {"source_type": "zip", "source_url": f"https://x/{ref}.zip",
|
||||
"local_cache": str(data / ref)} for ref in ("pak", "old")}
|
||||
members = [(str(data / ref / "a.bin"), f"{ref}/a.bin") for ref in ("pak", "old")]
|
||||
refs = {f"{ref}/a.bin": (ref, ("s",), ref) for ref in ("pak", "old")}
|
||||
refs = {f"{ref}/a.bin": (ref, ("s",), ref, True) for ref in ("pak", "old")}
|
||||
listed = {entry["ref"]: entry for entry in
|
||||
_manifest_data_directories(members, refs, registry, "")}
|
||||
self.assertEqual(listed["pak"]["archive_size"], 21_360_579)
|
||||
self.assertNotIn("archive_size", listed["old"])
|
||||
self.assertNotIn("optional", listed["pak"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user