diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-16 18:25:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-16 18:25:59 +0300 |
| commit | 36db8ff3f4bee21b06f3208422be7cf91c7d3e40 (patch) | |
| tree | 539cb0114feb45aeb8d483a29cba6e7912f77483 /scripts/test_changelog.py | |
| parent | aff99878d3467e809e18f07fb338c78dea50e558 (diff) | |
ci: promote stable releases from protected previews (#4241)
Diffstat (limited to 'scripts/test_changelog.py')
| -rw-r--r-- | scripts/test_changelog.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/test_changelog.py b/scripts/test_changelog.py index f08088a3..07897c25 100644 --- a/scripts/test_changelog.py +++ b/scripts/test_changelog.py @@ -102,6 +102,14 @@ class ChangelogScriptTests(unittest.TestCase): self.assertEqual(manifest["protocol"], read_protocol_version()) self.assertEqual(manifest["notes"], "### Fixed\n- One") + def test_build_latest_json_uses_selected_release_endpoint_generation(self) -> None: + manifest = json.loads(build_latest_json( + "0.1.1", "Release notes", release_assets("0.1.1"), release_sha256(), + endpoint_generation=7, + )) + self.assertEqual(manifest["endpoint_generation"], 7) + self.assertEqual(manifest["releases"]["0.1.1"]["endpoint_generation"], 7) + def test_build_latest_json_embeds_notes_and_release_assets(self) -> None: manifest = json.loads( build_latest_json( |
