enhancement(automl): support for passing project to 'GcsClient'#9299
enhancement(automl): support for passing project to 'GcsClient'#9299tseaver merged 8 commits intogoogleapis:masterfrom
Conversation
|
Looks like you need to change the commit message (rather than the PR title): https://github.com/googleapis/google-cloud-python/pull/9299/checks?check_run_id=236270561
|
…ablesClient passing the default project and credentials
…are passed properly
I've updated the commit messages, but the checks haven't run again. Do I need to make a trivial commit or is there another way to force the checks to run again? |
…blesClient passing the default project and credentials
|
@tseaver Should I also update the type on the commit messages from fix to enhancement? |
| self.client = storage.Client() | ||
|
|
||
| self.bucket_name = bucket_name | ||
| self.project = project |
There was a problem hiding this comment.
Removed and updated the docstring. Thanks!
…hanged string to str
Changes:
GcsClient.__init__takes an optional project parameter and passes it to thestorage.Clientconstructor.GcsClientI had a little trouble testing that parameters were passed to the constructors for
GcsClientandstorage.Client. I tried various combinations of mock and patch, but evenMagicMockdoesn't support mocking__init__(). Any suggestions on better approaches would be appreciated.