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

Remove the dependency on the separate package mock. #770

Closed
wants to merge 1 commit into from
Closed

Remove the dependency on the separate package mock. #770

wants to merge 1 commit into from

Conversation

mcepl
Copy link

@mcepl mcepl commented Apr 16, 2022

unittest.mock in the standard library works as well.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #769

@mcepl mcepl requested review from a team as code owners April 16, 2022 10:13
@mcepl mcepl requested a review from kurtisvg April 16, 2022 10:13
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: storage Issues related to the googleapis/python-storage API. labels Apr 16, 2022
@google-cla
Copy link

google-cla bot commented Apr 16, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

For more information, open the CLA check for this pull request.

unittest.mock in the standard library works as well.
@kurtisvg kurtisvg added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 18, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 18, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Apr 19, 2022
…70440

https://build.opensuse.org/request/show/970440
by user mcepl + dimstar_suse
REQUIRES https://build.opensuse.org/request/show/970437

- Update to 2.3.0:
  - add dual region bucket support and sample
  - track invocation id for retry metrics
  - deps: drop pkg_resources
  - fix links in blob module
- Add patches:
  - no-relative-imports.patch to allow running the test suite
    with pytest (gh#googleapis/python-storage#772)
  - demock.patch to remove dependency on the external package
    mock (gh#googleapis/python-storage#770)
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, looking at the CI, I see multiple test failures that indicate that these aren't 100% equivalent. If you'd like to try running the tests and fixing up, you're welcome to, but otherwise I'll have to close this PR.

@mcepl
Copy link
Author

mcepl commented Apr 21, 2022

Actually, looking at the CI, I see multiple test failures that indicate that these aren't 100% equivalent. If you'd like to try running the tests and fixing up, you're welcome to, but otherwise I'll have to close this PR.

You are right, it is more bother than gain.

@mcepl mcepl closed this Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the dependency on mock
4 participants