feat(update): add forced upgrade progress flow
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user