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

Fix mock for urllib_request in GetURLContentTest #276

Merged
merged 3 commits into from
Jun 26, 2019
Merged

Conversation

jameslynnwu
Copy link
Contributor

We were replacing the urlopen and it wasn't being unmocked, so other tests got the value 'regular non-gzipped content' when calling urlopen.

We were replacing the urlopen and it wasn't being unmocked, so other tests got the value 'regular non-gzipped content' when calling urlopen.
@coveralls
Copy link

coveralls commented Jun 26, 2019

Coverage Status

Coverage remained the same at 91.673% when pulling 1abbc38 on jameslynnwu-patch-2 into a02b216 on master.

@houglum
Copy link
Contributor

houglum commented Jun 26, 2019

Context: This (the way the code was before your change) doesn't screw anything up now, since the test is torn down once those two methods are finished, but it would break things if we added another method in the future. +1 to this change, since it removes side effects that were previously sticking around after an individual test was finished.

@houglum houglum merged commit 1700719 into master Jun 26, 2019
@jameslynnwu jameslynnwu deleted the jameslynnwu-patch-2 branch August 9, 2022 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants