コード例 #1
0
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
コード例 #2
0
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