Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropping usage of _Monkey in favor of mock.patch. #2711

Merged
merged 1 commit into from
Nov 11, 2016

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Nov 9, 2016

This was done only in bigquery, datastore and storage packages. Still needs updates in bigtable, core, logging, monitoring, pubsub and speech.

From discussion with @tseaver in #2681.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2016
@@ -417,16 +420,18 @@ def mock_api(connection):
connections.append(connection)
return return_val

with _Monkey(MUT, _DatastoreAPIOverHttp=mock_api):
patch = mock.patch(

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes dhermes force-pushed the partial-drop-monkey branch from 6b3197c to 2d4155e Compare November 10, 2016 23:44
@dhermes
Copy link
Contributor Author

dhermes commented Nov 10, 2016

@tseaver Any reservations?

@tseaver
Copy link
Contributor

tseaver commented Nov 11, 2016

@dhermes LGTM after rebase, Travis OK.

This was done only in bigquery, datastore and storage
packages. Still needs updates in bigtable, core, logging,
monitoring, pubsub and speech.
@dhermes dhermes force-pushed the partial-drop-monkey branch from 2d4155e to 85e8b5c Compare November 11, 2016 19:18
@dhermes dhermes merged commit dece9c4 into googleapis:master Nov 11, 2016
@dhermes dhermes deleted the partial-drop-monkey branch November 11, 2016 19:40
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
Dropping usage of _Monkey in favor of mock.patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants