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)
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)
def test_reversed(self): for ci in reversed(self.commits): crb = CommitRunBuilder([ci._id]) crb.run() crb.cleanup() self.assertEqual(CommitRunDoc.m.count(), 1)
def test_svn_like(self): for ci in self.commits: crb = CommitRunBuilder([ci._id]) crb.run() crb.cleanup() self.assertEqual(CommitRunDoc.m.count(), 1)
def test_single_pass(self): crb = CommitRunBuilder( [ci._id for ci in self.commits]) crb.run() self.assertEqual(CommitRunDoc.m.count(), 1)