Skip to content

Commit 0c622d7

Browse files
Update packages/google-cloud-storage/tests/unit/test_client.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 92b3601 commit 0c622d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/google-cloud-storage/tests/unit/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ def test_ctor_w_custom_endpoint_w_credentials(self):
384384
custom_endpoint = "storage-example.p.googleapis.com"
385385
credentials = _make_credentials(project=PROJECT)
386386
with mock.patch("os.environ", {}):
387+
with mock.patch.dict("os.environ", {}, clear=True):
387388
client = self._make_one(
388-
credentials=credentials,
389-
client_options={"api_endpoint": custom_endpoint},
389+
credentials=credentials, client_options={"api_endpoint": custom_endpoint}
390390
)
391391
self.assertEqual(client._connection.API_BASE_URL, custom_endpoint)
392392
self.assertEqual(client.project, PROJECT)

0 commit comments

Comments
 (0)