Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/google-cloud-datastore/tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

from typing import Any, Dict
import os

import mock
import pytest
Expand Down Expand Up @@ -115,6 +116,7 @@ def _make_client(
)


@mock.patch.dict(os.environ, clear=True)
def test_client_ctor_w_project_no_environ():
# Some environments (e.g. AppVeyor CI) run in GCE, so
# this test would fail artificially.
Expand All @@ -127,6 +129,7 @@ def test_client_ctor_w_project_no_environ():


@pytest.mark.parametrize("database_id", [None, "somedb"])
@mock.patch.dict(os.environ, clear=True)
def test_client_ctor_w_implicit_inputs(database_id):
from google.cloud.datastore.client import _CLIENT_INFO, _DATASTORE_BASE_URL, Client

Expand Down
Loading