We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1c5af7 commit 1678f41Copy full SHA for 1678f41
1 file changed
packages/google-cloud-error-reporting/tests/unit/test_client.py
@@ -14,6 +14,7 @@
14
15
16
import unittest
17
+import os
18
19
import mock
20
@@ -51,6 +52,7 @@ def _get_report_payload(self, error_api):
51
52
self.assertEqual(len(positional), 1)
53
return positional[0]
54
55
+ @mock.patch.dict(os.environ, clear=True)
56
@mock.patch("google.cloud.client._determine_default_project")
57
def test_ctor_defaults(self, default_mock):
58
from google.api_core.client_info import ClientInfo
0 commit comments