def test_add_arguments_help(): parser = LMTask.get_parser() with pytest.raises(SystemExit): parser.parse_args(["--help"])
def test_print_config_and_load_it(tmp_path): config_file = tmp_path / "config.yaml" with config_file.open("w") as f: LMTask.print_config(f) parser = LMTask.get_parser() parser.parse_args(["--config", str(config_file)])
def test_add_arguments(): LMTask.get_parser()
def get_parser(): parser = LMTask.get_parser() return parser