Пример #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)