Пример #1
0
def get_commits_between_releases(
        release: release.Release, last_release: release.Release,
        repo: repository.Repository) -> [commit.Commit]:

    commits = []
    for c in repo.get_commits():
        if (c.get_date() >= last_release.get_creation_time()
                and c.get_date() <= release.get_creation_time()):
            commits.append(c)
    return commits
Пример #2
0
def test_release():
    release = Release(session, DATA_OBJECT)
    assert release.get_tag_name() == DATA_OBJECT['tag_name'], "get_tag_name output did not match"
    assert release.get_creation_time() == EXPECTED_DATE, "get_creation_time output did not match"