mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 19:38:52 -06:00
refactor: move pack library code into packs/
This commit is contained in:
1 parent
4d4052a8ab
commit
0b532366d0
167 files changed
+14476
-13882
No files matched your search
@@ -216,14 +216,15 @@ class ScratchFilesGetThePlainMode(unittest.TestCase):
|
||||
def test_packs_and_their_manifest(self):
|
||||
import zipfile
|
||||
|
||||
import generate_pack
|
||||
from packs import archive
|
||||
from packs import finalize
|
||||
|
||||
pack = self.dir / "Pack.zip"
|
||||
with generate_pack._writing_pack(str(pack)) as zf:
|
||||
with archive._writing_pack(str(pack)) as zf:
|
||||
zf.writestr("a.bin", b"x")
|
||||
self.assertEqual(self._mode(pack), 0o644)
|
||||
os.chmod(pack, 0o600)
|
||||
generate_pack.inject_manifest(str(pack), {"files": []})
|
||||
finalize.inject_manifest(str(pack), {"files": []})
|
||||
self.assertEqual(self._mode(pack), 0o644)
|
||||
with zipfile.ZipFile(pack) as zf:
|
||||
self.assertIn("manifest.json", zf.namelist())
|
||||
|
||||
Reference in new issue
Block a user