We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b3601 commit 0c622d7Copy full SHA for 0c622d7
packages/google-cloud-storage/tests/unit/test_client.py
@@ -384,9 +384,9 @@ def test_ctor_w_custom_endpoint_w_credentials(self):
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(
- credentials=credentials,
389
- 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