| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This pull request updates the unit test test_prediction_client_client_info in test_tables_client_v1beta1.py to mock and pass a client argument when instantiating TablesClient. There are no review comments, and I have no feedback to provide.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Following #17616, google-api-core extracts and deduplicates the x-goog-api-client metrics header during callable construction in _GapicCallable.__init__ (_extract_metrics_header). Because AutoMlClient was not mocked in this test, passing client_info=mock.Mock() caused AutoMlClient's transport wrapper to attempt unpacking the mock metadata into (key, value) pairs, resulting in: