Returns a dict for pytest invocation.
()
| 73 | |
| 74 | |
| 75 | def 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. |
no test coverage detected
searching dependent graphs…