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