Skip to content

Commit

Permalink
Updating test mock to match gcloud-python.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Nov 25, 2015
1 parent a92693d commit 185ec56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcloud_bigtable/_grpc_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def __init__(self, name, factory):
def __call__(self, *args, **kwargs):
"""Sync method meant to mock a gRPC stub request."""
self._factory.method_calls.append((self._name, args, kwargs))
curr_result = self._factory.results[0]
self._factory.results = self._factory.results[1:]
curr_result, self._factory.results = (self._factory.results[0],
self._factory.results[1:])
return curr_result


Expand Down

0 comments on commit 185ec56

Please sign in to comment.