Ejemplo n.º 1
0
 def testNumberOfDatesCorrectResult(self):
     commitsList = getCommits(self.fileData)
     datesList = getDates(commitsList)
     self.assertEqual(76, len(datesList))
Ejemplo n.º 2
0
 def testNumberOfTimesCorrectResult(self):
     commitsList = getCommits(self.fileData)
     timesList = getTimes(commitsList)
     self.assertEqual(419, len(timesList))
Ejemplo n.º 3
0
 def testNumberOfMonthsCorrectResult(self):
     commitsList = getCommits(self.fileData)
     monthsList = getMonths(commitsList)
     self.assertEqual(5, len(monthsList))
Ejemplo n.º 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'])
Ejemplo n.º 5
0
 def testTopCommiterCorrectResult(self):
     commitsList = getCommits(self.fileData)
     authorsList = getAuthors(commitsList)
     self.assertEqual(191, authorsList['Thomas']['commits'])
     self.assertEqual(234, authorsList['Thomas']['lines'])
Ejemplo n.º 6
0
 def testNumberOfAuthorsCorrectResult(self):
     commitsList = getCommits(self.fileData)
     authorsList = getAuthors(commitsList)
     self.assertEqual(10, len(authorsList))
Ejemplo n.º 7
0
 def testNumberOfCommitsCorrectResult(self):
     commitsList = getCommits(self.fileData)
     self.assertEqual(422, len(commitsList))