def print(*args, **kwargs): import dvc.logger as logger if logger.is_quiet(): return print(*args, **kwargs)
def _print(*args, **kwargs): if logger.is_quiet(): return print(*args, **kwargs)
def test_is_quiet(self): self.assertFalse(logger.is_quiet()) with logger.quiet(): self.assertFalse(logger.is_verbose())