We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e15fce commit eba633cCopy full SHA for eba633c
1 file changed
packages/google-cloud-datastore/tests/unit/test_client.py
@@ -13,6 +13,7 @@
13
# limitations under the License.
14
15
from typing import Any, Dict
16
+import os
17
18
import mock
19
import pytest
@@ -115,6 +116,7 @@ def _make_client(
115
116
)
117
118
119
+@mock.patch.dict(os.environ, clear=True)
120
def test_client_ctor_w_project_no_environ():
121
# Some environments (e.g. AppVeyor CI) run in GCE, so
122
# this test would fail artificially.
@@ -127,6 +129,7 @@ def test_client_ctor_w_project_no_environ():
127
129
128
130
131
@pytest.mark.parametrize("database_id", [None, "somedb"])
132
133
def test_client_ctor_w_implicit_inputs(database_id):
134
from google.cloud.datastore.client import _CLIENT_INFO, _DATASTORE_BASE_URL, Client
135
0 commit comments