Add VK callback auth support and admin demotion
This commit is contained in:
@@ -31,6 +31,15 @@ class AutoUpdateServiceTests(unittest.TestCase):
|
||||
expected = hashlib.sha256(payload).hexdigest()
|
||||
self.assertEqual(AutoUpdateService.sha256_file(str(path)), expected)
|
||||
|
||||
def test_extract_sha256_from_build_sidecar_format(self):
|
||||
digest = "b" * 64
|
||||
text = f"{digest} AnabasisManager-2.2.5.zip\n"
|
||||
extracted = AutoUpdateService.extract_sha256_from_text(
|
||||
text,
|
||||
"AnabasisManager-2.2.5.zip",
|
||||
)
|
||||
self.assertEqual(extracted, digest)
|
||||
|
||||
def test_build_update_script_contains_core_vars(self):
|
||||
script = AutoUpdateService.build_update_script(
|
||||
app_dir=r"C:\Apps\AnabasisManager",
|
||||
|
||||
Reference in New Issue
Block a user