11 lines
331 B
Python
11 lines
331 B
Python
from snooper_version import bump_patch, format_version
|
|
|
|
|
|
def test_version_marks_dirty_worktree_as_dev():
|
|
assert format_version("0.1.0", "abc1234", False) == "0.1.0+gabc1234"
|
|
assert format_version("0.1.0", "abc1234", True) == "0.1.0.dev0+gabc1234"
|
|
|
|
|
|
def test_patch_version_bump():
|
|
assert bump_patch("0.1.9") == "0.1.10"
|