Esempio n. 1
0
 def test_needed_on_some_branches_patch(self):
     bug = u.make_bug({'v2-status': 'fixed'})
     a = u.make_attachment()
     a['flags'] = [u.make_attachment_flag({
         'name': 'approval-v2',
         'status': '+'
     })]
     bug['attachments'] = [a]
     needed_on = subject.needed_on_branches(bug)
     self.assertEqual(['v3'], needed_on)
Esempio n. 2
0
 def test_needed_on_blocking_partially_fixed(self):
     bug = u.make_bug({'blocking': 'v2'})
     needed_on = subject.needed_on_branches(bug)
     self.assertEqual(['v2', 'v3'], needed_on)
Esempio n. 3
0
 def test_needed_on_blocking_already_fixed(self):
     bug = u.make_bug({'blocking': 'v2',
                       'v2-status': 'fixed',
                       'v3-status': 'verified'})
     needed_on = subject.needed_on_branches(bug)
     self.assertEqual([], needed_on)