Example #1
0
 def testGetGitBlame(self):
   repo_info = {
       'repo_url': 'https://chromium.googlesource.com/chromium/src.git',
       'revision': '8'
   }
   file_path = 'a/b/c.cc'
   self.mock(GitRepository, 'GetBlame', self._MockGetBlame)
   blame = build_failure_analysis._GetGitBlame(repo_info, file_path)
   self.assertIsNotNone(blame)
Example #2
0
 def testGetGitBlameEmpty(self):
   repo_info = {}
   file_path = 'a/b/c.cc'
   self.mock(GitRepository, 'GetBlame', self._MockGetBlame)
   blame = build_failure_analysis._GetGitBlame(repo_info, file_path)
   self.assertIsNone(blame)