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