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 dae800f

Browse filesBrowse files
michaelawyuJon Wayne Parrott
michaelawyu
authored and
Jon Wayne Parrott
committed
Fixed failed tests on Kokoro (Spanner + Translate) [(googleapis#1192)](GoogleCloudPlatform/python-docs-samples#1192)
* Fixed failed tests on Kokoro (Spanner + Translate) * Update quickstart_test.py
1 parent 52e04c6 commit dae800f
Copy full SHA for dae800f

File tree

Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-5
lines changed

‎samples/samples/quickstart_test.py

Copy file name to clipboardExpand all lines: samples/samples/quickstart_test.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
import os
1616

1717
from google.cloud import spanner
18-
import google.cloud.exceptions
19-
import google.cloud.spanner.client
2018
import mock
2119
import pytest
2220

@@ -27,13 +25,13 @@
2725

2826
@pytest.fixture
2927
def patch_instance():
30-
original_instance = google.cloud.spanner.client.Client.instance
28+
original_instance = spanner.Client.instance
3129

3230
def new_instance(self, unused_instance_name):
3331
return original_instance(self, SPANNER_INSTANCE)
3432

3533
instance_patch = mock.patch(
36-
'google.cloud.spanner.client.Client.instance',
34+
'google.cloud.spanner.Client.instance',
3735
side_effect=new_instance,
3836
autospec=True)
3937

‎samples/samples/snippets.py

Copy file name to clipboardExpand all lines: samples/samples/snippets.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def query_data_with_index(
194194
ALTER TABLE Albums ADD COLUMN MarketingBudget INT64
195195
196196
"""
197-
from google.cloud.proto.spanner.v1 import type_pb2
197+
from google.cloud.spanner_v1.proto import type_pb2
198198

199199
spanner_client = spanner.Client()
200200
instance = spanner_client.instance(instance_id)

0 commit comments

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