def set_loglevel(args): """Sets log level from CLI arguments.""" if args.quiet: logger.be_quiet() elif args.verbose: logger.be_verbose()
def tearDown(self): logger.logger.handlers = self.handlers logger.be_verbose() self.color_patch.stop()
def setUp(self): super(TestDvcFixture, self).setUp() self.dvc = DvcRepo.init(self._root_dir) self.dvc.scm.commit("init dvc") logger.be_verbose()
def tearDown(self): logger.logger.handlers = self.handlers logger.be_verbose() self.consoleColorRemover.__exit__()
def setUp(self): super(TestDvc, self).setUp() self.dvc = Project.init(self._root_dir) logger.be_verbose()
def _set_loglevel(args): if args.quiet: logger.be_quiet() elif args.verbose: logger.be_verbose()