Skip to content

Commit

Permalink
merge conflicts; correct imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelnucfin committed Nov 9, 2017
1 parent 3015e29 commit d09d907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions datastore/google/cloud/datastore/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from google.cloud._helpers import _datetime_to_pb_timestamp
from google.cloud._helpers import _pb_timestamp_to_datetime
from google.cloud.datastore_v1.proto import datastore_pb2
from google.cloud.datastore_v1.proto import entity_pb2
from google.cloud.datastore.entity import Entity
from google.cloud.datastore.key import Key
Expand Down
6 changes: 3 additions & 3 deletions datastore/tests/unit/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,23 +510,23 @@ def test_eventual_w_transaction(self):
self._call_fut(True, b'123')

def test_eventual_wo_transaction(self):
from google.cloud.proto.datastore.v1 import datastore_pb2
from google.cloud.datastore_v1.proto import datastore_pb2

read_options = self._call_fut(True, None)
expected = datastore_pb2.ReadOptions(
read_consistency=datastore_pb2.ReadOptions.EVENTUAL)
self.assertEqual(read_options, expected)

def test_default_w_transaction(self):
from google.cloud.proto.datastore.v1 import datastore_pb2
from google.cloud.datastore_v1.proto import datastore_pb2

txn_id = b'123abc-easy-as'
read_options = self._call_fut(False, txn_id)
expected = datastore_pb2.ReadOptions(transaction=txn_id)
self.assertEqual(read_options, expected)

def test_default_wo_transaction(self):
from google.cloud.proto.datastore.v1 import datastore_pb2
from google.cloud.datastore_v1.proto import datastore_pb2

read_options = self._call_fut(False, None)
expected = datastore_pb2.ReadOptions()
Expand Down

0 comments on commit d09d907

Please sign in to comment.