How to use the lkml.parse_args function in lkml

To help you get started, we’ve selected a few lkml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joshtemple / lkml / tests / test_cli.py View on Github external
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
github joshtemple / lkml / tests / test_cli.py View on Github external
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