Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: fix unit test that could be broken by user's environment (#239)
Unit test for the `google.cloud.bigtable.Client` constructor was picking
up the project from user's `GOOGLE_CLOUD_PROJECT` environment variable.
  • Loading branch information
Chris Rossi committed Mar 5, 2021
1 parent 6df4df8 commit cbd712e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/test_client.py
Expand Up @@ -103,6 +103,7 @@ def _get_target_class():
def _make_one(self, *args, **kwargs):
return self._get_target_class()(*args, **kwargs)

@mock.patch("os.environ", {})
def test_constructor_defaults(self):
from google.cloud.bigtable.client import _CLIENT_INFO
from google.cloud.bigtable.client import DATA_SCOPE
Expand Down

0 comments on commit cbd712e

Please sign in to comment.