8c18cecf15a8935d8bf712edcc91ac05daf2176e,appengine/standard/noxfile-template.py,,,#,26
Before Change
// Any default versions that should be ignored.
IGNORED_VERSIONS = ["3.6", "3.7", "3.8"]
TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])
//
// Style Checks
//
After Change
// with `noxfile_config.py`. Users will copy `noxfile_config.py` into
// their directory and modify it.
TEST_CONFIG = {
// You can opt out from the test for specific Python versions.
"ignored_versions": ["2.7"],
// 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",
// A dictionary you want to inject into your test. Don"t put any
// secrets here. These values will override predefined values.
"envs": {},
}
try:
// Ensure we can import noxfile_config in the project"s directory.
sys.path.append(".")
from noxfile_config import TEST_CONFIG_OVERRIDE
except ImportError as e:
print("No user noxfile_config found: detail: {}".format(e))
TEST_CONFIG_OVERRIDE = {}
// Update the TEST_CONFIG with the user supplied values.
TEST_CONFIG.update(TEST_CONFIG_OVERRIDE)
def get_pytest_env_vars():
Returns a dict for pytest invocation.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 8c18cecf15a8935d8bf712edcc91ac05daf2176e
Time: 2020-06-16
Author: tmatsuo@google.com
File Name: appengine/standard/noxfile-template.py
Class Name:
Method Name:
Project Name: bashtage/linearmodels
Commit Name: c2696af8321dcc8b4bb742c2d57c2d3572091317
Time: 2020-01-17
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/utility.py
Class Name: _ModelComparison
Method Name: __init__
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 8c18cecf15a8935d8bf712edcc91ac05daf2176e
Time: 2020-06-16
Author: tmatsuo@google.com
File Name: appengine/standard/noxfile-template.py
Class Name:
Method Name:
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 5810701ca3a9fae4ef3baada2a137ee5a660353b
Time: 2020-05-15
Author: tmatsuo@google.com
File Name: noxfile-template.py
Class Name:
Method Name: