Home
last modified time | relevance | path

Searched refs:monkeypatch (Results 1 – 25 of 25) sorted by relevance

/external/python/httplib2/tests/
Dtest_proxy.py39 def test_from_env(monkeypatch): argument
41 monkeypatch.setenv("http_proxy", "http://myproxy.example.com:8080")
47 def test_from_env_https(monkeypatch): argument
49 monkeypatch.setenv("http_proxy", "http://myproxy.example.com:80")
50 monkeypatch.setenv("https_proxy", "http://myproxy.example.com:81")
62 def test_applies_to(monkeypatch): argument
63 monkeypatch.setenv("http_proxy", "http://myproxy.example.com:80")
64 monkeypatch.setenv("https_proxy", "http://myproxy.example.com:81")
65 monkeypatch.setenv("no_proxy", "localhost,example.com,.wildcard")
76 def test_noproxy_trailing_comma(monkeypatch): argument
[all …]
/external/python/google-auth-library-python/tests/oauth2/
Dtest_id_token.py204 def test_fetch_id_token_credentials_optional_request(monkeypatch): argument
205 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False)
219 def test_fetch_id_token_credentials_from_metadata_server(monkeypatch): argument
220 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False)
234 def test_fetch_id_token_credentials_from_explicit_cred_json_file(monkeypatch): argument
235 monkeypatch.setenv(environment_vars.CREDENTIALS, SERVICE_ACCOUNT_FILE)
242 def test_fetch_id_token_credentials_no_cred_exists(monkeypatch): argument
243 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False)
263 def test_fetch_id_token_credentials_invalid_cred_file_type(monkeypatch): argument
267 monkeypatch.setenv(environment_vars.CREDENTIALS, user_credentials_file)
[all …]
/external/python/google-auth-library-python/tests/
Dtest__default.py442 def test__get_explicit_environ_credentials(load, quota_project_id, monkeypatch): argument
443 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename")
455 def test__get_explicit_environ_credentials_no_project_id(load, monkeypatch): argument
457 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename")
471 get_gcloud_creds, get_adc_path, quota_project_id, monkeypatch argument
475 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename")
559 def app_identity(monkeypatch): argument
562 monkeypatch.setattr(app_engine, "app_identity", app_identity_module)
710 def test_default_explict_project_id(unused_get, monkeypatch): argument
711 monkeypatch.setenv(environment_vars.PROJECT, "explicit-env")
[all …]
Dtest__cloud_sdk.py123 def test_get_config_path_env_var(monkeypatch): argument
125 monkeypatch.setenv(environment_vars.CLOUD_SDK_CONFIG_DIR, config_path_sentinel)
140 def test_get_config_path_windows(monkeypatch): argument
142 monkeypatch.setenv(_cloud_sdk._WINDOWS_CONFIG_ROOT_ENV_VAR, appdata)
150 def test_get_config_path_no_appdata(monkeypatch): argument
151 monkeypatch.delenv(_cloud_sdk._WINDOWS_CONFIG_ROOT_ENV_VAR, raising=False)
152 monkeypatch.setenv("SystemDrive", "G:")
Dtest_aws.py1039 def test_retrieve_subject_token_success_environment_vars(self, utcnow, monkeypatch): argument
1040 monkeypatch.setenv(environment_vars.AWS_ACCESS_KEY_ID, ACCESS_KEY_ID)
1041 monkeypatch.setenv(environment_vars.AWS_SECRET_ACCESS_KEY, SECRET_ACCESS_KEY)
1042 monkeypatch.setenv(environment_vars.AWS_SESSION_TOKEN, TOKEN)
1043 monkeypatch.setenv(environment_vars.AWS_REGION, self.AWS_REGION)
1061 self, utcnow, monkeypatch argument
1063 monkeypatch.setenv(environment_vars.AWS_ACCESS_KEY_ID, ACCESS_KEY_ID)
1064 monkeypatch.setenv(environment_vars.AWS_SECRET_ACCESS_KEY, SECRET_ACCESS_KEY)
1065 monkeypatch.setenv(environment_vars.AWS_SESSION_TOKEN, TOKEN)
1066 monkeypatch.setenv(environment_vars.AWS_DEFAULT_REGION, self.AWS_REGION)
[all …]
Dconftest.py34 def mock_non_existent_module(monkeypatch): argument
47 monkeypatch.setitem(sys.modules, current_module, mock.MagicMock())
Dtest__oauth2client.py165 def test_import_without_oauth2client(monkeypatch, reset__oauth2client_module): argument
166 monkeypatch.setitem(sys.modules, "oauth2client", None)
Dtest_app_engine.py43 def app_identity(monkeypatch): argument
46 monkeypatch.setattr(app_engine, "app_identity", app_identity_module)
Dtest_jwt.py301 def test_decode_missing_crytography_alg(monkeypatch): argument
302 monkeypatch.delitem(jwt._ALGORITHM_TO_VERIFIER_CLASS, "ES256")
/external/python/google-auth-library-python/tests_async/oauth2/
Dtest_id_token.py210 async def test_fetch_id_token_from_metadata_server(monkeypatch): argument
211 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False)
231 async def test_fetch_id_token_from_explicit_cred_json_file(monkeypatch): argument
232 monkeypatch.setenv(environment_vars.CREDENTIALS, test_id_token.SERVICE_ACCOUNT_FILE)
246 async def test_fetch_id_token_no_cred_exists(monkeypatch): argument
247 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False)
270 async def test_fetch_id_token_invalid_cred_file(monkeypatch): argument
274 monkeypatch.setenv(environment_vars.CREDENTIALS, not_json_file)
285 async def test_fetch_id_token_invalid_cred_type(monkeypatch): argument
289 monkeypatch.setenv(environment_vars.CREDENTIALS, user_credentials_file)
[all …]
/external/mesa3d/.gitlab-ci/tests/utils/
Dtest_lava_job_definition.py84 def mock_collabora_farm(clear_env_vars, monkeypatch): argument
86 monkeypatch.setenv("RUNNER_TAG", "mesa-ci-1234-lava-collabora")
98 monkeypatch, argument
101 monkeypatch.setattr(lava.utils.lava_job_definition, "FORCE_UART", force_uart)
195 monkeypatch, argument
197 monkeypatch.setattr(lava.utils.lava_job_definition, "FORCE_UART", force_uart)
Dtest_lava_farm.py23 def test_get_lava_farm_no_tag(monkeypatch): argument
24 monkeypatch.delenv("RUNNER_TAG", raising=False)
Dtest_lava_log.py240 def test_lava_gitlab_section_log_collabora(expected_message, messages, monkeypatch): argument
242 monkeypatch.setenv("RUNNER_TAG", "mesa-ci-x86_64-lava-test")
/external/python/google-auth-library-python/tests_async/
Dtest__default_async.py170 def test__get_explicit_environ_credentials(load, quota_project_id, monkeypatch): argument
171 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename")
183 def test__get_explicit_environ_credentials_no_project_id(load, monkeypatch): argument
185 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename")
199 get_gcloud_creds, get_adc_path, quota_project_id, monkeypatch argument
203 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename")
289 def app_identity(monkeypatch): argument
292 monkeypatch.setattr(app_engine, "app_identity", app_identity_module)
440 def test_default_explict_project_id(unused_get, monkeypatch): argument
441 monkeypatch.setenv(environment_vars.PROJECT, "explicit-env")
[all …]
Dconftest.py36 def mock_non_existent_module(monkeypatch): argument
49 monkeypatch.setitem(sys.modules, current_module, mock.MagicMock())
/external/trusty/arm-trusted-firmware/tools/tlc/tests/
Dtest_cli.py168 def test_validate_invalid_signature(tmptlstr, tlcrunner, monkeypatch): argument
173 monkeypatch.setattr("builtins.open", mock_open)
179 def test_validate_misaligned_entries(tmptlstr, tlcrunner, monkeypatch): argument
186 monkeypatch.setattr("builtins.open", mock_open)
196 def test_validate_unsupported_version(version, tmptlstr, tlcrunner, monkeypatch): argument
201 monkeypatch.setattr("builtins.open", mock_open)
/external/fonttools/Tests/ttx/
Dttx_test.py951 def test_main_keyboard_interrupt(tmpdir, monkeypatch, caplog): argument
956 monkeypatch.setattr(
964 def test_main_system_exit(tmpdir, monkeypatch): argument
969 monkeypatch.setattr(ttx, "process", (lambda x, y: raise_exception(SystemExit)))
973 def test_main_ttlib_error(tmpdir, monkeypatch, caplog): argument
978 monkeypatch.setattr(
988 def test_main_base_exception(tmpdir, monkeypatch, caplog): argument
993 monkeypatch.setattr(
/external/fonttools/Tests/mtiLib/
Dmti_test.py13 def set_lookup_debug_env_var(monkeypatch): argument
14 monkeypatch.setenv(LOOKUP_DEBUG_ENV_VAR, "1")
/external/python/jinja/tests/
Dtest_loader.py307 def package_dir_loader(monkeypatch): argument
308 monkeypatch.syspath_prepend(os.path.dirname(__file__))
329 def package_zip_loader(monkeypatch): argument
330 monkeypatch.syspath_prepend(
/external/mesa3d/.gitlab-ci/tests/
Dtest_lava_job_submitter.py296 def test_wait_for_job_get_started_no_time_to_run(monkeypatch, job_timeout, expectation): argument
297 monkeypatch.setattr("lava.lava_job_submitter.CI_JOB_TIMEOUT_SEC", job_timeout)
298 monkeypatch.setattr("lava.lava_job_submitter.CI_JOB_STARTED_AT", datetime.now(tz=UTC))
/external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/run_tests/artifacts/
Dbuild_artifact_python.bat32 @rem by enabling a monkeypatch. It speeds up the build a lot.
/external/grpc-grpc/tools/run_tests/artifacts/
Dbuild_artifact_python.bat30 @rem by enabling a monkeypatch. It speeds up the build a lot.
/external/python/six/
Dtest_six.py380 def test_dictionary_iterators(monkeypatch): argument
411 monkeypatch.setattr(MyDict, stock_method_name(name), with_kw)
414 monkeypatch.undo()
/external/fonttools/Tests/subset/
Dsubset_test.py996 def test_harfbuzz_repacker(self, caplog, monkeypatch, installed, enabled, ok): argument
1010 monkeypatch.setattr(hb, "repack", mock_repack)
1017 monkeypatch.setattr(hb, "repack_with_tag", mock_repack_with_tag)
1021 monkeypatch.setattr(
/external/python/google-auth-library-python/docs/
Duser-guide.rst162 monkeypatch. Refer `App Engine documentation`_ for more details on this.