Skip to content

Commit

Permalink
Fix rebase hork.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jan 14, 2015
1 parent 43f73de commit b1935fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
17 changes: 0 additions & 17 deletions gcloud/datastore/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,23 +126,6 @@ def build_api_url(cls, dataset_id, method, base_url=None,
api_version=(api_version or cls.API_VERSION),
dataset_id=dataset_id, method=method)

def transaction(self, transaction=connection.Connection._EMPTY):
"""Getter/setter for the connection's transaction object.
:type transaction: :class:`gcloud.datastore.transaction.Transaction`,
(setting), or omitted (getting).
:param transaction: The new transaction (if passed).
:rtype: :class:`gcloud.datastore.transaction.Transaction`, (getting)
or :class:`gcloud.datastore.connection.Connection` (setting)
:returns: The current transaction (getting) or self (setting).
"""
if transaction is self._EMPTY:
return self._current_transaction
else:
self._current_transaction = transaction
return self

def lookup(self, dataset_id, key_pbs,
missing=None, deferred=None, eventual=False):
"""Lookup keys from a dataset in the Cloud Datastore.
Expand Down
10 changes: 0 additions & 10 deletions gcloud/datastore/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,6 @@ def test_build_api_url_w_explicit_base_version(self):
self.assertEqual(klass.build_api_url(DATASET_ID, METHOD, BASE, VER),
URI)

def test_transaction_getter_unset(self):
conn = self._makeOne()
self.assertTrue(conn.transaction() is None)

def test_transaction_setter(self):
xact = object()
conn = self._makeOne()
self.assertTrue(conn.transaction(xact) is conn)
self.assertTrue(conn.transaction() is xact)

def test_lookup_single_key_empty_response(self):
from gcloud.datastore import datastore_v1_pb2 as datastore_pb

Expand Down

0 comments on commit b1935fe

Please sign in to comment.