File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 15
15
import os
16
16
17
17
from google .cloud import spanner
18
- import google .cloud .exceptions
19
- import google .cloud .spanner .client
20
18
import mock
21
19
import pytest
22
20
27
25
28
26
@pytest .fixture
29
27
def patch_instance ():
30
- original_instance = google . cloud . spanner . client .Client .instance
28
+ original_instance = spanner .Client .instance
31
29
32
30
def new_instance (self , unused_instance_name ):
33
31
return original_instance (self , SPANNER_INSTANCE )
34
32
35
33
instance_patch = mock .patch (
36
- 'google.cloud.spanner.client. Client.instance' ,
34
+ 'google.cloud.spanner.Client.instance' ,
37
35
side_effect = new_instance ,
38
36
autospec = True )
39
37
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def query_data_with_index(
194
194
ALTER TABLE Albums ADD COLUMN MarketingBudget INT64
195
195
196
196
"""
197
- from google .cloud .proto . spanner . v1 import type_pb2
197
+ from google .cloud .spanner_v1 . proto import type_pb2
198
198
199
199
spanner_client = spanner .Client ()
200
200
instance = spanner_client .instance (instance_id )
You can’t perform that action at this time.
0 commit comments