| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Add samples for explicitly using compute and app engine credentials.
|
|
||
| def test_explicit_compute_engine(): | ||
| adc, project = google.auth.default() | ||
| credentials_patch = mock.patch( |
There was a problem hiding this comment.
Why assign this to a variable and then use it as a context manager instead of inlining it with the "with" as in the test above?
Sorry, something went wrong.
There was a problem hiding this comment.
Because splitting context manager syntax over multiple lines is extremely awkward, so we've gotten into the habit of giving the patch manager its own variable.
Sorry, something went wrong.
PR created by the Librarian CLI to initialize a release. Merging this PR will auto trigger a release. Librarian Version: v0.7.0 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:8e2c32496077054105bd06c54a59d6a6694287bc053588e24debe6da6920ad91 <details><summary>google-cloud-logging: 3.13.0</summary> ## [3.13.0](googleapis/python-logging@v3.12.1...v3.13.0) (2025-12-15) ### Features * Add support for python 3.14 (#1065) ([6be3df6a](googleapis/python-logging@6be3df6a)) ### Bug Fixes * remove setup.cfg configuration for creating universal wheels (#981) ([70f612c3](googleapis/python-logging@70f612c3)) </details>
| Back | FazBrowse Home | New Git URL |
Add samples for explicitly using compute and app engine credentials.