fix(release): support the pre-stable development graph

This commit is contained in:
ethernet
2026-09-22 12:19:01 -04:00
parent 920a57e193
commit e64351c8e7
3 changed files with 19 additions and 3 deletions

View File

@@ -53,3 +53,16 @@ def test_distance_is_zero_on_the_release_commit(repo):
git(repo, "checkout", "--quiet", "v1.4.0")
assert dev_version(repo) == "1.4.0"
def test_dev_install_stamp_before_the_first_final_release(repo, monkeypatch):
from scripts import write_install_stamp
git(repo, "tag", "--delete", "v1.4.0", "v1.4.0-rc")
monkeypatch.setattr(write_install_stamp, "_REPO_ROOT", repo)
stamp = write_install_stamp.build_stamp(update_mechanism="external")
assert stamp["baseVersion"] == "0.0.0"
assert stamp["distance"] == 0
assert stamp["displayVersion"] == "0.0.0"