Beispiel #1
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"
Beispiel #2
0
def test_next_patch(repo):
    v = Vinnie(repo=repo, prefix="v")
    assert v.version() == "v0.0.2"
    assert v.get_next_patch() == "v0.0.3"
Beispiel #3
0
def test_current_version(repo):
    # When given a version, use that instead of whatever is found in the repo
    v = Vinnie(repo=repo, current_version="2.1.1")
    assert v.version() == "2.1.1"
    assert v.get_next_patch() == "2.1.2"