示例#1
0
 def test_two_pass(self):
     crb = CommitRunBuilder([ci._id for ci in self.commits[:5]])
     crb.run()
     crb = CommitRunBuilder([ci._id for ci in self.commits[5:]])
     crb.run()
     self.assertEqual(CommitRunDoc.m.count(), 2)
     crb.cleanup()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#2
0
 def test_two_pass(self):
     crb = CommitRunBuilder(
         [ci._id for ci in self.commits[:5]])
     crb.run()
     crb = CommitRunBuilder(
         [ci._id for ci in self.commits[5:]])
     crb.run()
     self.assertEqual(CommitRunDoc.m.count(), 2)
     crb.cleanup()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#3
0
 def test_reversed(self):
     for ci in reversed(self.commits):
         crb = CommitRunBuilder([ci._id])
         crb.run()
         crb.cleanup()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#4
0
 def test_svn_like(self):
     for ci in self.commits:
         crb = CommitRunBuilder([ci._id])
         crb.run()
         crb.cleanup()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#5
0
 def test_single_pass(self):
     crb = CommitRunBuilder(
         [ci._id for ci in self.commits])
     crb.run()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#6
0
 def test_reversed(self):
     for ci in reversed(self.commits):
         crb = CommitRunBuilder([ci._id])
         crb.run()
         crb.cleanup()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#7
0
 def test_svn_like(self):
     for ci in self.commits:
         crb = CommitRunBuilder([ci._id])
         crb.run()
         crb.cleanup()
     self.assertEqual(CommitRunDoc.m.count(), 1)
示例#8
0
 def test_single_pass(self):
     crb = CommitRunBuilder(
         [ci._id for ci in self.commits])
     crb.run()
     self.assertEqual(CommitRunDoc.m.count(), 1)