Ejemplo n.º 1
0
def test_choose_and_run_parser_type_with_log_file_type_gtest_lint(
        gtest_valid_file_path, parser_log_file_types,
        mock_file_write_functions):
    with pytest.raises(SystemExit):
        cli_manager.choose_and_run_parser_type(
            gtest_valid_file_path.get("gtest_lint_valid_path"),
            parser_log_file_types.get("gtest_lint"))
Ejemplo n.º 2
0
def test_choose_and_run_parser_type_with_log_file_type_android_and_no_api_version(
        android_valid_file_path, parser_log_file_types,
        mock_file_write_functions):
    with pytest.raises(SystemExit):
        cli_manager.choose_and_run_parser_type(
            android_valid_file_path.get("android_pass_lint_valid_path"),
            parser_log_file_types.get("android_lint"))
Ejemplo n.º 3
0
def test_choose_and_run_parser_type_with_log_file_type_docker(
        docker_valid_file_path, parser_log_file_types,
        mock_file_write_functions):
    with pytest.raises(SystemExit):
        cli_manager.choose_and_run_parser_type(
            docker_valid_file_path.get("docker_valid_path"),
            parser_log_file_types.get("docker_build"))
Ejemplo n.º 4
0
def test_choose_and_run_parser_type_with_invalid_log_file_type(
        docker_valid_file_path, parser_log_file_types):
    with pytest.raises(ValueError,
                       match=parser_log_file_types.get("no_parser_error")):
        cli_manager.choose_and_run_parser_type(
            docker_valid_file_path.get("docker_valid_path"),
            parser_log_file_types.get("api_version"))
Ejemplo n.º 5
0
def test_choose_and_run_parser_type_with_log_file_type_firebase_test_and_device_name(
        firebase_valid_file_path, parser_log_file_types,
        mock_file_write_functions):
    with pytest.raises(SystemExit):
        cli_manager.choose_and_run_parser_type(
            firebase_valid_file_path.get("firebase_test_lint_valid_path"),
            parser_log_file_types.get("firebase_test_lint"),
            parser_log_file_types.get("device_name"))
Ejemplo n.º 6
0
def test_choose_and_run_parser_type_with_file_path(docker_valid_file_path,
                                                   mock_file_write_functions):
    with pytest.raises(SystemExit):
        cli_manager.choose_and_run_parser_type(
            docker_valid_file_path.get("docker_valid_path"), None)
Ejemplo n.º 7
0
def test_choose_and_run_parser_type_with_no_file_path_or_file_type(
        parser_log_file_types):
    with pytest.raises(ValueError,
                       match=parser_log_file_types.get("no_parser_error")):
        cli_manager.choose_and_run_parser_type(None, None)