fix(release): support the pre-stable development graph
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user