def test_get_pretty_log_message(self): repo = Repository() commits = repo.get_commits_since_tag(repo.get_latest_tag(regex='v\d+')) PrettyLog(commits).commit_message_map
def test_we_can_filter_commits_for_tags(self): repo = Repository() self.assertTrue(len(repo.get_commits_since_tag(repo.tags[0])) > 1)
def test_we_can_get_latest_tag_for_a_prefix(self): repo = Repository() self.assertEqual(repo.tags[0], repo.get_latest_tag()) self.assertEqual(repo.tags[0], repo.get_latest_tag(regex='v\d+'))
def __init__(self): self.repo = Repository() commits = self.repo.get_commits_since_tag(self.repo.get_latest_tag()) self.log = PrettyLog(commits)