gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

Unexpected keyword argument in generated unit tests for streaming methods

Open vam-google opened this issue 3 years ago • 0 comments

Affected APIs:

//google/cloud/bigquery/storage/v1/storage_py_gapic_test
//google/cloud/bigquery/storage/v1beta2/storage_py_gapic_test
//google/devtools/build/v1/build_py_gapic_test

Error output:

_______________________ test_append_rows_flattened_error _______________________

    def test_append_rows_flattened_error():
        client = BigQueryWriteClient(
            credentials=ga_credentials.AnonymousCredentials(),
        )
    
        # Attempting to call a method with both a request object and flattened
        # fields is an error.
        with pytest.raises(ValueError):
>           client.append_rows(
                storage.AppendRowsRequest(),
                write_stream='write_stream_value',
            )
E           TypeError: BigQueryWriteClient.append_rows() got an unexpected keyword argument 'write_stream'

vam-google avatar Jul 26 '22 23:07 vam-google