Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make google-cloud-monitoring tests work without
mock
(#12317)
https://pypi.org/project/mock/ library is not needed anymore on modern Python installation, since it is now part of the Python standard library, available as `unittest.mock`. Reuse approach used in generated `tests/unit/gapic/monitoring_v3/` for manually written `tests/unit/test_query.py`. This issue and solution was found as a part of packaging the library for Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2263960. 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: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-cloud-python/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #12316 🦕
- Loading branch information