@@ -139,7 +139,7 @@ def _make_key_pb(self, project, id_=1234):
139139 return Key (* path_args , project = project ).to_protobuf ()
140140
141141 def _make_query_pb (self , kind ):
142- from google .cloud .grpc .datastore .v1 import query_pb2
142+ from google .cloud .proto .datastore .v1 import query_pb2
143143
144144 pb = query_pb2 .Query ()
145145 pb .kind .add ().name = kind
@@ -253,7 +253,7 @@ def test_build_api_url_w_explicit_base_version(self):
253253 URI )
254254
255255 def test_lookup_single_key_empty_response (self ):
256- from google .cloud .grpc .datastore .v1 import datastore_pb2
256+ from google .cloud .proto .datastore .v1 import datastore_pb2
257257
258258 PROJECT = 'PROJECT'
259259 key_pb = self ._make_key_pb (PROJECT )
@@ -281,7 +281,7 @@ def test_lookup_single_key_empty_response(self):
281281 self .assertEqual (key_pb , keys [0 ])
282282
283283 def test_lookup_single_key_empty_response_w_eventual (self ):
284- from google .cloud .grpc .datastore .v1 import datastore_pb2
284+ from google .cloud .proto .datastore .v1 import datastore_pb2
285285
286286 PROJECT = 'PROJECT'
287287 key_pb = self ._make_key_pb (PROJECT )
@@ -321,7 +321,7 @@ def test_lookup_single_key_empty_response_w_eventual_and_transaction(self):
321321 eventual = True , transaction_id = TRANSACTION )
322322
323323 def test_lookup_single_key_empty_response_w_transaction (self ):
324- from google .cloud .grpc .datastore .v1 import datastore_pb2
324+ from google .cloud .proto .datastore .v1 import datastore_pb2
325325
326326 PROJECT = 'PROJECT'
327327 TRANSACTION = b'TRANSACTION'
@@ -352,8 +352,8 @@ def test_lookup_single_key_empty_response_w_transaction(self):
352352 self .assertEqual (request .read_options .transaction , TRANSACTION )
353353
354354 def test_lookup_single_key_nonempty_response (self ):
355- from google .cloud .grpc .datastore .v1 import datastore_pb2
356- from google .cloud .grpc .datastore .v1 import entity_pb2
355+ from google .cloud .proto .datastore .v1 import datastore_pb2
356+ from google .cloud .proto .datastore .v1 import entity_pb2
357357
358358 PROJECT = 'PROJECT'
359359 key_pb = self ._make_key_pb (PROJECT )
@@ -385,7 +385,7 @@ def test_lookup_single_key_nonempty_response(self):
385385 self .assertEqual (key_pb , keys [0 ])
386386
387387 def test_lookup_multiple_keys_empty_response (self ):
388- from google .cloud .grpc .datastore .v1 import datastore_pb2
388+ from google .cloud .proto .datastore .v1 import datastore_pb2
389389
390390 PROJECT = 'PROJECT'
391391 key_pb1 = self ._make_key_pb (PROJECT )
@@ -415,7 +415,7 @@ def test_lookup_multiple_keys_empty_response(self):
415415 self .assertEqual (key_pb2 , keys [1 ])
416416
417417 def test_lookup_multiple_keys_w_missing (self ):
418- from google .cloud .grpc .datastore .v1 import datastore_pb2
418+ from google .cloud .proto .datastore .v1 import datastore_pb2
419419
420420 PROJECT = 'PROJECT'
421421 key_pb1 = self ._make_key_pb (PROJECT )
@@ -450,7 +450,7 @@ def test_lookup_multiple_keys_w_missing(self):
450450 self .assertEqual (key_pb2 , keys [1 ])
451451
452452 def test_lookup_multiple_keys_w_deferred (self ):
453- from google .cloud .grpc .datastore .v1 import datastore_pb2
453+ from google .cloud .proto .datastore .v1 import datastore_pb2
454454
455455 from google .cloud import _http as connection_module
456456 from google .cloud .datastore ._http import _CLIENT_INFO
@@ -494,8 +494,8 @@ def test_lookup_multiple_keys_w_deferred(self):
494494 self .assertEqual (key_pb2 , keys [1 ])
495495
496496 def test_run_query_w_eventual_no_transaction (self ):
497- from google .cloud .grpc .datastore .v1 import datastore_pb2
498- from google .cloud .grpc .datastore .v1 import query_pb2
497+ from google .cloud .proto .datastore .v1 import datastore_pb2
498+ from google .cloud .proto .datastore .v1 import query_pb2
499499
500500 project = 'PROJECT'
501501 kind = 'Nonesuch'
@@ -534,8 +534,8 @@ def test_run_query_w_eventual_no_transaction(self):
534534 self .assertEqual (request .read_options .transaction , b'' )
535535
536536 def test_run_query_wo_eventual_w_transaction (self ):
537- from google .cloud .grpc .datastore .v1 import datastore_pb2
538- from google .cloud .grpc .datastore .v1 import query_pb2
537+ from google .cloud .proto .datastore .v1 import datastore_pb2
538+ from google .cloud .proto .datastore .v1 import query_pb2
539539
540540 project = 'PROJECT'
541541 kind = 'Nonesuch'
@@ -577,8 +577,8 @@ def test_run_query_wo_eventual_w_transaction(self):
577577 self .assertEqual (request .read_options .transaction , transaction )
578578
579579 def test_run_query_w_eventual_and_transaction (self ):
580- from google .cloud .grpc .datastore .v1 import datastore_pb2
581- from google .cloud .grpc .datastore .v1 import query_pb2
580+ from google .cloud .proto .datastore .v1 import datastore_pb2
581+ from google .cloud .proto .datastore .v1 import query_pb2
582582
583583 PROJECT = 'PROJECT'
584584 KIND = 'Nonesuch'
@@ -595,8 +595,8 @@ def test_run_query_w_eventual_and_transaction(self):
595595 eventual = True , transaction_id = TRANSACTION )
596596
597597 def test_run_query_wo_namespace_empty_result (self ):
598- from google .cloud .grpc .datastore .v1 import datastore_pb2
599- from google .cloud .grpc .datastore .v1 import query_pb2
598+ from google .cloud .proto .datastore .v1 import datastore_pb2
599+ from google .cloud .proto .datastore .v1 import query_pb2
600600
601601 project = 'PROJECT'
602602 kind = 'Nonesuch'
@@ -632,9 +632,9 @@ def test_run_query_wo_namespace_empty_result(self):
632632 self .assertEqual (request .query , q_pb )
633633
634634 def test_run_query_w_namespace_nonempty_result (self ):
635- from google .cloud .grpc .datastore .v1 import datastore_pb2
636- from google .cloud .grpc .datastore .v1 import entity_pb2
637- from google .cloud .grpc .datastore .v1 import query_pb2
635+ from google .cloud .proto .datastore .v1 import datastore_pb2
636+ from google .cloud .proto .datastore .v1 import entity_pb2
637+ from google .cloud .proto .datastore .v1 import query_pb2
638638
639639 project = 'PROJECT'
640640 kind = 'Kind'
@@ -670,7 +670,7 @@ def test_run_query_w_namespace_nonempty_result(self):
670670 self .assertEqual (request .query , q_pb )
671671
672672 def test_begin_transaction (self ):
673- from google .cloud .grpc .datastore .v1 import datastore_pb2
673+ from google .cloud .proto .datastore .v1 import datastore_pb2
674674
675675 PROJECT = 'PROJECT'
676676 TRANSACTION = b'TRANSACTION'
@@ -693,7 +693,7 @@ def test_begin_transaction(self):
693693 request .ParseFromString (cw ['body' ])
694694
695695 def test_commit_wo_transaction (self ):
696- from google .cloud .grpc .datastore .v1 import datastore_pb2
696+ from google .cloud .proto .datastore .v1 import datastore_pb2
697697 from google .cloud .datastore .helpers import _new_value_pb
698698
699699 project = 'PROJECT'
@@ -729,7 +729,7 @@ def test_commit_wo_transaction(self):
729729 self .assertEqual (request .mode , rq_class .NON_TRANSACTIONAL )
730730
731731 def test_commit_w_transaction (self ):
732- from google .cloud .grpc .datastore .v1 import datastore_pb2
732+ from google .cloud .proto .datastore .v1 import datastore_pb2
733733 from google .cloud .datastore .helpers import _new_value_pb
734734
735735 project = 'PROJECT'
@@ -765,7 +765,7 @@ def test_commit_w_transaction(self):
765765 self .assertEqual (request .mode , rq_class .TRANSACTIONAL )
766766
767767 def test_rollback_ok (self ):
768- from google .cloud .grpc .datastore .v1 import datastore_pb2
768+ from google .cloud .proto .datastore .v1 import datastore_pb2
769769
770770 PROJECT = 'PROJECT'
771771 TRANSACTION = b'xact'
@@ -789,7 +789,7 @@ def test_rollback_ok(self):
789789 self .assertEqual (request .transaction , TRANSACTION )
790790
791791 def test_allocate_ids_empty (self ):
792- from google .cloud .grpc .datastore .v1 import datastore_pb2
792+ from google .cloud .proto .datastore .v1 import datastore_pb2
793793
794794 PROJECT = 'PROJECT'
795795 rsp_pb = datastore_pb2 .AllocateIdsResponse ()
@@ -811,7 +811,7 @@ def test_allocate_ids_empty(self):
811811 self .assertEqual (list (request .keys ), [])
812812
813813 def test_allocate_ids_non_empty (self ):
814- from google .cloud .grpc .datastore .v1 import datastore_pb2
814+ from google .cloud .proto .datastore .v1 import datastore_pb2
815815
816816 PROJECT = 'PROJECT'
817817 before_key_pbs = [
0 commit comments