示例#1
0
 def testNumberOfDatesCorrectResult(self):
     commitsList = getCommits(self.fileData)
     datesList = getDates(commitsList)
     self.assertEqual(76, len(datesList))
示例#2
0
 def testNumberOfTimesCorrectResult(self):
     commitsList = getCommits(self.fileData)
     timesList = getTimes(commitsList)
     self.assertEqual(419, len(timesList))
示例#3
0
 def testNumberOfMonthsCorrectResult(self):
     commitsList = getCommits(self.fileData)
     monthsList = getMonths(commitsList)
     self.assertEqual(5, len(monthsList))
示例#4
0
 def testLowestCommiterCorrectResult(self):
     commitsList = getCommits(self.fileData)
     authorsList = getAuthors(commitsList)
     self.assertEqual(1, authorsList['murari.krishnan']['commits'])
     self.assertEqual(1, authorsList['murari.krishnan']['lines'])
示例#5
0
 def testTopCommiterCorrectResult(self):
     commitsList = getCommits(self.fileData)
     authorsList = getAuthors(commitsList)
     self.assertEqual(191, authorsList['Thomas']['commits'])
     self.assertEqual(234, authorsList['Thomas']['lines'])
示例#6
0
 def testNumberOfAuthorsCorrectResult(self):
     commitsList = getCommits(self.fileData)
     authorsList = getAuthors(commitsList)
     self.assertEqual(10, len(authorsList))
示例#7
0
 def testNumberOfCommitsCorrectResult(self):
     commitsList = getCommits(self.fileData)
     self.assertEqual(422, len(commitsList))