Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 606abd8

Browse filesBrowse files
authored
tests: fix unit test broken by google-cloud-core release (#54)
Closes #53
1 parent 6f0bbba commit 606abd8
Copy full SHA for 606abd8

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎packages/google-cloud-datastore/tests/unit/test_client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-datastore/tests/unit/test_client.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def test_constructor_w_implicit_inputs(self):
155155
from google.cloud.datastore.client import _CLIENT_INFO
156156
from google.cloud.datastore.client import _DATASTORE_BASE_URL
157157

158+
klass = self._get_target_class()
158159
other = "other"
159160
creds = _make_credentials()
160161

@@ -180,7 +181,7 @@ def test_constructor_w_implicit_inputs(self):
180181
self.assertIsNone(client.current_batch)
181182
self.assertIsNone(client.current_transaction)
182183

183-
default.assert_called_once_with()
184+
default.assert_called_once_with(scopes=klass.SCOPE,)
184185
_determine_default_project.assert_called_once_with(None)
185186

186187
def test_constructor_w_explicit_inputs(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.