mik-laj commented on a change in pull request #5958: [AIRFLOW-5335] Simplify
GCSHook test
URL: https://github.com/apache/airflow/pull/5958#discussion_r319403957
##########
File path: tests/contrib/hooks/test_gcs_hook.py
##########
@@ -71,10 +71,11 @@ def setUp(self):
self.gcs_hook = gcs_hook.GoogleCloudStorageHook(
google_cloud_storage_conn_id='test')
- def test_storage_client_creation(self):
+ @mock.patch(BASE_STRING.format("GoogleCloudBaseHook._get_credentials"))
Review comment:
But I think that it is worth to return some value here.
```suggestion
@mock.patch(BASE_STRING.format("GoogleCloudBaseHook._get_credentials"),
return_value = "CREDENTIALS")
```
`"CREDENTIALS"` is a marker
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services