Skip to content

Commit

Permalink
Merge branch 'master' into opentelemetry-tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Aug 6, 2020
2 parents 3ecd789 + 28544ca commit 0d8dabe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_client.py
Expand Up @@ -150,6 +150,8 @@ def test_constructor_custom_client_info(self):
self._constructor_test_helper(expected_scopes, creds, client_info=client_info)

def test_constructor_implicit_credentials(self):
from google.cloud.spanner_v1 import client as MUT

creds = _make_credentials()

patch = mock.patch("google.auth.default", return_value=(creds, None))
Expand All @@ -158,7 +160,7 @@ def test_constructor_implicit_credentials(self):
None, None, expected_creds=creds.with_scopes.return_value
)

default.assert_called_once_with()
default.assert_called_once_with(scopes=(MUT.SPANNER_ADMIN_SCOPE,))

def test_constructor_credentials_wo_create_scoped(self):
creds = _make_credentials()
Expand Down

0 comments on commit 0d8dabe

Please sign in to comment.