fix: 使用固定便携包清单名称 (#102)
This commit is contained in:
@@ -145,7 +145,7 @@ class ReleaseManifestTest(unittest.TestCase):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = Path(directory)
|
||||
update_zip = root / "CMAutoBuy_0.1.0.zip"
|
||||
portable_zip = root / "自动采集采购工具_0.1.0.zip"
|
||||
portable_zip = root / "自动采集采购工具.zip"
|
||||
update_zip.write_bytes(b"update")
|
||||
portable_zip.write_bytes(b"portable")
|
||||
output = root / MANIFEST_FILE_NAME
|
||||
@@ -160,6 +160,7 @@ class ReleaseManifestTest(unittest.TestCase):
|
||||
manifest["update"]["sha256"],
|
||||
hashlib.sha256(b"update").hexdigest(),
|
||||
)
|
||||
self.assertEqual(manifest["update"]["file"], "CMAutoBuy_0.1.0.zip")
|
||||
self.assertEqual(manifest["portable"]["file"], portable_zip.name)
|
||||
|
||||
def test_versioned_manifest_name_is_stable_and_validated(self):
|
||||
|
||||
Reference in New Issue
Block a user