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

KeyError in generated unit tests for `name=**` resource names

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

The following APIs are affected:

//google/cloud/recommendationengine/v1beta1/recommendationengine_py_gapic_test
//google/devtools/remoteworkers/v1test2/remoteworkers_py_gapic_test
//google/home/graph/v1/graph_py_gapic_test

A test failure output sample:

=================================== FAILURES ===================================
_________________________ test_catalog_item_path_path __________________________

    def test_catalog_item_path_path():
        project = "cuttlefish"
        location = "mussel"
        catalog = "winkle"
        catalog_item_path = "nautilus"
>       expected = "projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**}".format(project=project, location=location, catalog=catalog, catalog_item_path=catalog_item_path, )
E       KeyError: 'catalog_item_path=**'

google/cloud/recommendationengine/v1beta1/recommendationengine_py_gapic_srcjar.py/tests/unit/gapic/recommendationengine_v1beta1/test_catalog_service.py:2750: KeyError

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