Exemple #1
0
 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
Exemple #2
0
 def test_we_can_filter_commits_for_tags(self):
     repo = Repository()
     self.assertTrue(len(repo.get_commits_since_tag(repo.tags[0])) > 1)
Exemple #3
0
 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+'))
Exemple #4
0
 def __init__(self):
     self.repo = Repository()
     commits = self.repo.get_commits_since_tag(self.repo.get_latest_tag())
     self.log = PrettyLog(commits)