示例#1
0
def test_repo_without_tags_no_semver(empty_repo):
    """ This tests situations where there are no initial tags """
    v = Vinnie(repo=empty_repo, semver=False)
    v.dump()
    assert v.version() == "0"
    assert v.get_next_bump() == "1"
示例#2
0
def test_repo_without_tags(empty_repo):
    """ This tests situations where there are no initial tags """
    v = Vinnie(repo=empty_repo)
    v.dump()
    assert v.version() == "0.0.0"
    assert v.get_next_patch() == "0.0.1"