feat(update): add forced upgrade progress flow

This commit is contained in:
chengma
2026-07-13 12:12:58 +08:00
parent bab2609a85
commit 04124060fc
11 changed files with 437 additions and 101 deletions
+4
View File
@@ -46,6 +46,9 @@ class UpdateCheckTests(unittest.TestCase):
"size_bytes": 123,
"package_format": "cmshopee-portable-v1",
"updater_protocol": 1,
"min_updater_protocol": 1,
"signature_algorithm": "",
"manifest_signature": "",
"message": "请升级后继续使用",
}
@@ -62,6 +65,7 @@ class UpdateCheckTests(unittest.TestCase):
self.assertEqual("https://example.test/cmshopee.zip", result.download_url)
self.assertEqual(123, result.size_bytes)
self.assertEqual("cmshopee-portable-v1", result.package_format)
self.assertEqual(1, result.min_updater_protocol)
def test_check_for_update_accepts_release_wrapper_response(self):
def fetcher(_url, _timeout):