We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c622d7 commit 20f4309Copy full SHA for 20f4309
packages/google-cloud-storage/tests/unit/test_client.py
@@ -383,10 +383,10 @@ def test_ctor_w_custom_endpoint_w_credentials(self):
383
PROJECT = "PROJECT"
384
custom_endpoint = "storage-example.p.googleapis.com"
385
credentials = _make_credentials(project=PROJECT)
386
- with mock.patch("os.environ", {}):
387
with mock.patch.dict("os.environ", {}, clear=True):
388
client = self._make_one(
389
- credentials=credentials, client_options={"api_endpoint": custom_endpoint}
+ credentials=credentials,
+ client_options={"api_endpoint": custom_endpoint},
390
)
391
self.assertEqual(client._connection.API_BASE_URL, custom_endpoint)
392
self.assertEqual(client.project, PROJECT)
0 commit comments