Example #1
0
def get_parser():
    parser = EnhancementTask.get_parser()
    return parser
Example #2
0
def test_add_arguments():
    EnhancementTask.get_parser()
Example #3
0
def test_add_arguments_help():
    parser = EnhancementTask.get_parser()
    with pytest.raises(SystemExit):
        parser.parse_args(["--help"])
Example #4
0
def test_print_config_and_load_it(tmp_path):
    config_file = tmp_path / "config.yaml"
    with config_file.open("w") as f:
        EnhancementTask.print_config(f)
    parser = EnhancementTask.get_parser()
    parser.parse_args(["--config", str(config_file)])