Add review comments for version

merge-requests/12/head
bom 1 year ago
parent 64116edcb4
commit 6766691ee7

@ -99,10 +99,12 @@ def test_should_create_major():
assert sut.to_string() == "2.0.0"
def test_should_create_bump():
# TODO: bom - 2023_05_11: Why does this not actually bump the version?
version = Version.from_str("1.2.3-SNAPSHOT")
sut = version.create_bump()
assert sut.to_string() == "1.2.3-SNAPSHOT"
# TODO: bom - 2023_05_11: Why do we bump the minor version and not the patch?
version = Version.from_str("1.2.3")
sut = version.create_bump("SNAPSHOT")
assert sut.to_string() == "1.3.0-SNAPSHOT"

Loading…
Cancel
Save