Example #1
0
    def test_(self):
        commits = GitRepoHelper._get_commits(self.repo)
        details = GitRepoHelper._get_commit_details(self.repo, commits)

        self.assertEquals(details[0][0]['content'], 'this is a test')
        self.assertEquals(details[0][2]['content'], 'this is a test2')
        self.assertEquals(details[1][0]['content'], '# testpygithub')
        '''
Example #2
0
 def test_(self):
     repohelper  = GitExcelHelper.action_type(self.filename,"commit")
     commits = GitRepoHelper._get_commits(repohelper.gitcommit.repo)
     details = GitRepoHelper._get_commit_details(repohelper.gitcommit.repo,commits)
     self.assertEquals(details[0][4]['content'],'this is a test5')
     self.assertEquals(details[0][4]['path'],u'test/git_test5.txt')