[logging] Construct and run nox sessions with logging #2286
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: process
A process-related concern. May include testing, release, or the like.
In #2281, we're running presubmits with logging by setting the environment variable
GOOGLE_SDK_PYTHON_LOGGING_SCOPE
within the GitHub action and then running the usualnox
unit tests. This works, but it means that when running locally to test for logging, we have to do the same thing. It would be easier to be able to do this vianox
sessions.In addition, logging is an inherent part of the generator and the GAPICs, so this shouldn't be external to the testing framework.
We can specify environment variables in
nox
via https://nox.thea.codes/en/stable/config.html#nox.sessions.Session.envThe text was updated successfully, but these errors were encountered: