Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Remove all uses of MagicMock #598

Merged
merged 1 commit into from Aug 10, 2016
Merged

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Aug 9, 2016

MagicMock is a version of Mock with extra features for tests that need to test usage of magic methods (i.e. __nonzero__, __cmp__, etc.).

None of the oauth2client tests actually need these extra features though.

@dhermes
Copy link
Contributor Author

dhermes commented Aug 10, 2016

It seems py33 has started failing because of django. FWIW django dropped support for 3.3 on Dec. 1, 2015.

The gcloud-python project has also stopped supporting 3.3

@theacodes
Copy link
Contributor

We might as well drop 3.3 as well. This LGTM, the travis failure should be addressed separately.

@nathanielmanistaatgoogle
Copy link
Contributor

Commit itself looks fine; will this not get a passing build until 3.3 support is dropped?

@theacodes
Copy link
Contributor

@nathanielmanistaatgoogle correct. I'll try to do that today (dealing with a product launch).

@dhermes
Copy link
Contributor Author

dhermes commented Aug 10, 2016

TADA! I just made #604

MagicMock is a version of Mock with extra features for
tests that need to test usage of magic methods (i.e.
__nonzero__, __cmp__, etc.).

None of the oauth2client tests actually need these
extra features though.
@dhermes dhermes merged commit 724181f into googleapis:master Aug 10, 2016
@dhermes dhermes deleted the remove-magic-mock branch August 10, 2016 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants