|
|
@@ -15,12 +15,11 @@ def test_deterministic_sorted_posix_zip(tmp_path: Path) -> None:
|
|
|
files = {
|
|
|
"z/中文 long name.txt": b"z\n",
|
|
|
"a.txt": b"a\n",
|
|
|
- "PACKAGE-MANIFEST.json": b"{}\n",
|
|
|
- "SHA256SUMS": b"",
|
|
|
"PACKAGE-SELF-CHECK.py": b"print('PASS')\n",
|
|
|
"START-HERE.zh-CN.md": b"start\n",
|
|
|
"EXCLUSIONS.json": b"{}\n",
|
|
|
}
|
|
|
+ files, _ = canonical.package_archive.finalize(files, {"profile": "fixture"})
|
|
|
a = canonical.write_zip(tmp_path / "a.zip", files)
|
|
|
b = canonical.write_zip(tmp_path / "b.zip", files)
|
|
|
assert canonical.sha_file(a) == canonical.sha_file(b)
|