MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / get_pytest_env_vars

Function get_pytest_env_vars

samples/compute/noxfile.py:75–86  ·  view source on GitHub ↗

Returns a dict for pytest invocation.

()

Source from the content-addressed store, hash-verified

73
74
75def get_pytest_env_vars() -> Dict[str, str]:
76 """Returns a dict for pytest invocation."""
77 ret = {}
78
79 # Override the GCLOUD_PROJECT and the alias.
80 env_key = TEST_CONFIG["gcloud_project_env"]
81 # This should error out if not set.
82 ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key]
83
84 # Apply user supplied envs.
85 ret.update(TEST_CONFIG["envs"])
86 return ret
87
88
89# DO NOT EDIT - automatically generated.

Callers 1

_session_testsFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…