diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 19:59:22 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-20 19:59:22 +0300 |
| commit | 8bbabfc5b1c9f6f318e057d34848df8e791a6c48 (patch) | |
| tree | c6ef7fd599e05997f39dc2f4c5eb9a2bc3e25b2a /scripts/test_changelog.py | |
| parent | 836fd7e585af15cc1ccb0d4f04586ffec28d2a3c (diff) | |
fix: harden release manifest update flow
Diffstat (limited to 'scripts/test_changelog.py')
| -rw-r--r-- | scripts/test_changelog.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/test_changelog.py b/scripts/test_changelog.py index 5d9fd506..287d77c7 100644 --- a/scripts/test_changelog.py +++ b/scripts/test_changelog.py @@ -186,6 +186,26 @@ class ChangelogScriptTests(unittest.TestCase): }, ) + def test_manifest_from_release_payload_uses_explicit_protocol(self) -> None: + manifest = manifest_from_release_payload( + { + "tagName": "v0.1.1", + "isDraft": False, + "isPrerelease": False, + "body": "### Fixed\n- One\n", + "assets": [ + {"name": "herdr-linux-x86_64", "url": "https://example.com/linux-x86_64"}, + {"name": "herdr-linux-aarch64", "url": "https://example.com/linux-aarch64"}, + {"name": "herdr-macos-x86_64", "url": "https://example.com/macos-x86_64"}, + {"name": "herdr-macos-aarch64", "url": "https://example.com/macos-aarch64"}, + ], + }, + "0.1.1", + protocol=42, + ) + + self.assertEqual(manifest["protocol"], 42) + def test_manifest_from_release_payload_rejects_missing_asset(self) -> None: with self.assertRaisesRegex(ChangelogError, "missing asset herdr-macos-aarch64"): manifest_from_release_payload( |
