def tearDown(self): if self.updater is not None: self.updater.stop() stop_con_pool()
def _setup_updater(self, *args, **kwargs): stop_con_pool() bot = MockBot(*args, **kwargs) self.updater = Updater(workers=2, bot=bot)
def tearDown(self): if self.jq is not None: self.jq.stop() stop_con_pool()