diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index 69bcaf56d..6e9b926bd 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -89,7 +89,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] +ALL_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] diff --git a/samples/snippets/noxfile_config.py b/samples/snippets/noxfile_config.py index 7eba203a4..cb0b093f6 100644 --- a/samples/snippets/noxfile_config.py +++ b/samples/snippets/noxfile_config.py @@ -81,27 +81,27 @@ def get_cloud_kms_key(): TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7", "3.6", "3.7", "3.11", "3.12", "3.13"], - + "ignored_versions": ["2.7", "3.6", "3.7", "3.8"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. # 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', - 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', - + "gcloud_project_env": "BUILD_SPECIFIC_GCLOUD_PROJECT", # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - 'envs': { - 'HMAC_KEY_TEST_SERVICE_ACCOUNT': get_service_account_email(), - 'CLOUD_KMS_KEY': get_cloud_kms_key(), + "envs": { + "HMAC_KEY_TEST_SERVICE_ACCOUNT": get_service_account_email(), + "CLOUD_KMS_KEY": get_cloud_kms_key(), # Some tests can not use multiple projects because of several reasons: # 1. The new projects is enforced to have the # 'constraints/iam.disableServiceAccountKeyCreation' policy. # 2. The new projects buckets need to have universal permission model. # For those tests, we'll use the original project. - 'MAIN_GOOGLE_CLOUD_PROJECT': 'python-docs-samples-tests', - 'MAIN_CLOUD_KMS_KEY': ('projects/python-docs-samples-tests/locations/us/' - 'keyRings/gcs-kms-key-ring/cryptoKeys/gcs-kms-key') + "MAIN_GOOGLE_CLOUD_PROJECT": "python-docs-samples-tests", + "MAIN_CLOUD_KMS_KEY": ( + "projects/python-docs-samples-tests/locations/us/" + "keyRings/gcs-kms-key-ring/cryptoKeys/gcs-kms-key" + ), }, }