mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 20:38:52 -06:00
refactor: make writable an instance method
This commit is contained in:
1 parent
bc50106587
commit
81a94fc267
7 files changed
+31
-15
No files matched your search
@@ -145,7 +145,7 @@ class RetroDeckWritesWhatItCounts(unittest.TestCase):
|
||||
written = json.loads(produced["duckstation/component_manifest.json"])
|
||||
names = [e["filename"] for e in written["duckstation"]["bios"]]
|
||||
self.assertIn("b.bin", names)
|
||||
self.assertFalse(RetroDeck.writable(spread.files[2]))
|
||||
self.assertFalse(RetroDeck().writable(spread.files[2]))
|
||||
|
||||
|
||||
class HashesTheFormatCannotHold(unittest.TestCase):
|
||||
@@ -434,8 +434,8 @@ class OneMd5FormatsAddWhole(unittest.TestCase):
|
||||
|
||||
several = NativeFile("boot.bin", "boot.bin", "dc", truth={"md5": [A, B, C]})
|
||||
single = NativeFile("boot2.bin", "boot2.bin", "dc", truth={"md5": A})
|
||||
self.assertFalse(RetroBat.writable(several))
|
||||
self.assertTrue(RetroBat.writable(single))
|
||||
self.assertFalse(RetroBat().writable(several))
|
||||
self.assertTrue(RetroBat().writable(single))
|
||||
|
||||
|
||||
class BizHawkKeepsItsOwnHashes(unittest.TestCase):
|
||||
|
||||
Reference in new issue
Block a user