def test_tags(repo: Git): commit = repo.get_commit_from_tag('tag1') assert commit.hash == '6bb9e2c6a8080e6b5b34e6e316c894b2ddbf7fcd' commit = repo.get_commit_from_tag('tag2') assert commit.hash == '4638730126d40716e230c2040751a13153fb1556' with pytest.raises(IndexError): repo.get_commit_from_tag('tag4')
def test_get_commit_from_tag(repo: Git): commit = repo.get_commit_from_tag('v1.4') assert commit.hash == '09f6182cef737db02a085e1d018963c7a29bde5a' with pytest.raises(IndexError): repo.get_commit_from_tag('v1.5')