File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
24
24
from google .cloud ._helpers import _datetime_to_pb_timestamp
25
25
from google .cloud ._helpers import _pb_timestamp_to_datetime
26
+ from google .cloud .datastore_v1 .proto import datastore_pb2
26
27
from google .cloud .datastore_v1 .proto import entity_pb2
27
28
from google .cloud .datastore .entity import Entity
28
29
from google .cloud .datastore .key import Key
Original file line number Diff line number Diff line change @@ -510,23 +510,23 @@ def test_eventual_w_transaction(self):
510
510
self ._call_fut (True , b'123' )
511
511
512
512
def test_eventual_wo_transaction (self ):
513
- from google .cloud .proto . datastore . v1 import datastore_pb2
513
+ from google .cloud .datastore_v1 . proto import datastore_pb2
514
514
515
515
read_options = self ._call_fut (True , None )
516
516
expected = datastore_pb2 .ReadOptions (
517
517
read_consistency = datastore_pb2 .ReadOptions .EVENTUAL )
518
518
self .assertEqual (read_options , expected )
519
519
520
520
def test_default_w_transaction (self ):
521
- from google .cloud .proto . datastore . v1 import datastore_pb2
521
+ from google .cloud .datastore_v1 . proto import datastore_pb2
522
522
523
523
txn_id = b'123abc-easy-as'
524
524
read_options = self ._call_fut (False , txn_id )
525
525
expected = datastore_pb2 .ReadOptions (transaction = txn_id )
526
526
self .assertEqual (read_options , expected )
527
527
528
528
def test_default_wo_transaction (self ):
529
- from google .cloud .proto . datastore . v1 import datastore_pb2
529
+ from google .cloud .datastore_v1 . proto import datastore_pb2
530
530
531
531
read_options = self ._call_fut (False , None )
532
532
expected = datastore_pb2 .ReadOptions ()
You can’t perform that action at this time.
0 commit comments