Пример #1
0
    def setUp(self):
        hub = utils.MockHub()
        self.consumer = fedimg.consumers.FedimgConsumer(hub)

        vcr_filename = os.path.join(cassette_dir, self.id())
        self.vcr = vcr.use_cassette(vcr_filename, record_mode='new_episodes')
        self.vcr.__enter__()
Пример #2
0
 def setUp(self, fedmsg_init, add_issuer, add_badge):
     hub = utils.MockHub()
     self.consumer = fedbadges.consumers.FedoraBadgesConsumer(hub)
Пример #3
0
 def setUp(self, fedmsg_init, add_issuer, add_badge):
     hub = utils.MockHub()
     self.consumer = fedbadges.consumers.FedoraBadgesConsumer(hub)
     for rule in self.consumer.badge_rules:
         if rule['name'] == 'Junior Tagger (Tagger I)':
             self.rule = rule