Skip to content

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

Merged
dhermes merged 1 commit into
googleapis:masterfrom
dhermes:partial-drop-monkey
Nov 11, 2016
Merged

Dropping usage of _Monkey in favor of mock.patch.#2711
dhermes merged 1 commit into
googleapis:masterfrom
dhermes:partial-drop-monkey

Conversation

@dhermes

Copy link
Copy Markdown
Contributor

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.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 9, 2016
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

Copy link
Copy Markdown
ContributorAuthor

@tseaver Any reservations?

@tseaver

Copy link
Copy Markdown
Contributor

@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 merged commit dece9c4 into googleapis:masterNov 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.
parthea pushed a commit that referenced this pull request Nov 24, 2025
Dropping usage of _Monkey in favor of mock.patch.
parthea pushed a commit that referenced this pull request Mar 9, 2026
Dropping usage of _Monkey in favor of mock.patch.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@dhermes@tseaver@daspecster@googlebot