mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-11-02 10:40:14 +08:00
fixed # 新增本地部署脚本,一键生成对应平台的压缩包内容
This commit is contained in:
@@ -256,6 +256,12 @@ class ZhenxunPackageTests(unittest.TestCase):
|
||||
commit = next(data for method, path, data in calls
|
||||
if method == "POST" and path == "git/commits")
|
||||
self.assertEqual(commit["parents"], ["existing"])
|
||||
manifest = json.loads(read_package(package)["FARM-MANIFEST.json"])
|
||||
self.assertEqual(commit["message"], (
|
||||
manifest["source"]["message"] + "\n\n"
|
||||
+ "Farm-Source-Commit: " + manifest["source"]["commit"] + "\n"
|
||||
+ "Farm-Version: " + manifest["version"]
|
||||
))
|
||||
self.assertIn(("PATCH", "git/refs/heads/main", {
|
||||
"sha": "created", "force": False,
|
||||
}), calls)
|
||||
|
||||
Reference in New Issue
Block a user