Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_absence_of_debug_flag_is_parsed_to_log_level_warn(lookml_path):
args = lkml.parse_args([lookml_path])
assert args.log_level == logging.WARN
def test_debug_flag_is_parsed_to_log_level_debug(lookml_path):
args = lkml.parse_args([lookml_path, "-d"])
assert args.log_level == logging.DEBUG
args = lkml.parse_args([lookml_path, "--debug"])
assert args.log_level == logging.DEBUG