def test_do_promote_with_partially_overlapping_dvers_between_repos(self): pairs = [(self.routes['3.2-testing'], set(['el5', 'el6'])), (self.routes['3.3-testing'], set(['el6', 'el7']))] prom = promoter.Promoter(self.kojihelper, pairs) prom.add_promotion('partially-overlapping-dvers-in-repo') promoted_builds = prom.do_promotions() self.assertEqual(4, len(self.kojihelper.newly_tagged_packages)) self.assertEqual(4, len(promoted_builds))
def _make_promoter(self, routes, dvers=None): dvers = dvers or TestPromoter.dvers pairs = [(route, set(dvers)) for route in routes] return promoter.Promoter(self.kojihelper, pairs)