Home
last modified time | relevance | path

Searched refs:monkeypatch (Results 1 – 23 of 23) 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/pybind11/tests/extra_python_package/
Dtest_files.py100 def test_build_sdist(monkeypatch, tmpdir): argument
102 monkeypatch.chdir(MAIN_DIR)
154 def test_build_global_dist(monkeypatch, tmpdir): argument
156 monkeypatch.chdir(MAIN_DIR)
157 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1")
207 def tests_build_wheel(monkeypatch, tmpdir): argument
208 monkeypatch.chdir(MAIN_DIR)
236 def tests_build_global_wheel(monkeypatch, tmpdir): argument
237 monkeypatch.chdir(MAIN_DIR)
238 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1")
/external/python/setuptools/setuptools/tests/
Dtest_integration.py35 def install_context(request, tmpdir, monkeypatch): argument
47 monkeypatch.undo()
57 monkeypatch.chdir(new_cwd)
58 monkeypatch.setattr(easy_install_pkg, '__file__', user_site.strpath)
59 monkeypatch.setattr('site.USER_BASE', user_base.strpath)
60 monkeypatch.setattr('site.USER_SITE', user_site.strpath)
61 monkeypatch.setattr('sys.path', sys.path + [install_dir.strpath])
62 monkeypatch.setenv('PYTHONPATH', os.path.pathsep.join(sys.path))
Dfixtures.py7 def user_override(monkeypatch): argument
13 monkeypatch.setattr('site.USER_BASE', user_base)
15 monkeypatch.setattr('site.USER_SITE', user_site)
Dtest_install_scripts.py37 def test_sys_executable_escaping_unix(self, tmpdir, monkeypatch): argument
43 monkeypatch.setattr('sys.executable', self.unix_exe)
51 def test_sys_executable_escaping_win32(self, tmpdir, monkeypatch): argument
57 monkeypatch.setattr('sys.executable', self.win32_exe)
Dtest_unicode_utils.py4 def test_filesys_decode_fs_encoding_is_None(monkeypatch): argument
9 monkeypatch.setattr('sys.getfilesystemencoding', lambda: None)
Dtest_easy_install.py121 def test_all_site_dirs(self, monkeypatch): argument
128 monkeypatch.setattr(site, 'getsitepackages', mock_gsp, raising=False)
131 def test_all_site_dirs_works_without_getsitepackages(self, monkeypatch): argument
132 monkeypatch.delattr(site, 'getsitepackages', raising=False)
170 def test_unicode_filename_in_sdist(self, sdist_unicode, tmpdir, monkeypatch): argument
182 monkeypatch.setitem(os.environ, 'PYTHONPATH', str(target))
215 def test_script_install(self, sdist_script, tmpdir, monkeypatch): argument
226 monkeypatch.setitem(os.environ, 'PYTHONPATH', str(target))
Dtest_develop.py37 def temp_user(monkeypatch): argument
40 monkeypatch.setattr('site.USER_BASE', user_base)
41 monkeypatch.setattr('site.USER_SITE', user_site)
Dtest_packageindex.py262 def test_percent_in_password(self, tmpdir, monkeypatch): argument
263 monkeypatch.setitem(os.environ, 'HOME', str(tmpdir))
/external/python/cryptography/tests/
Dtest_fernet.py70 monkeypatch): argument
73 monkeypatch.setattr(time, "time", lambda: current_time)
78 def test_invalid(self, secret, token, now, ttl_sec, backend, monkeypatch): argument
81 monkeypatch.setattr(time, "time", lambda: current_time)
107 def test_timestamp_ignored_no_ttl(self, monkeypatch, backend): argument
113 monkeypatch.setattr(time, "time", lambda: current_time)
125 def test_extract_timestamp(self, monkeypatch, backend): argument
128 monkeypatch.setattr(time, "time", lambda: current_time)
190 def test_rotate_preserves_timestamp(self, backend, monkeypatch): argument
202 monkeypatch.setattr(time, "time", lambda: later_time)
Dtest_warnings.py17 def test_deprecated(self, monkeypatch): argument
19 monkeypatch.setitem(sys.modules, mod.__name__, mod)
51 def test_deleting_deprecated_members(self, monkeypatch): argument
53 monkeypatch.setitem(sys.modules, mod.__name__, mod)
/external/python/pybind11/tests/extra_setuptools/
Dtest_setuphelper.py15 def test_simple_setup_py(monkeypatch, tmpdir, parallel, std): argument
16 monkeypatch.chdir(tmpdir)
17 monkeypatch.syspath_prepend(MAIN_DIR)
/external/fonttools/Tests/ttx/
Dttx_test.py957 def test_main_keyboard_interrupt(tmpdir, monkeypatch, caplog): argument
962 monkeypatch.setattr(
974 def test_main_system_exit(tmpdir, monkeypatch): argument
979 monkeypatch.setattr(
985 def test_main_ttlib_error(tmpdir, monkeypatch, caplog): argument
990 monkeypatch.setattr(
1004 def test_main_base_exception(tmpdir, monkeypatch, caplog): argument
1009 monkeypatch.setattr(
/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/python/pybind11/tests/
Dtest_exceptions.py63 def test_python_alreadyset_in_destructor(monkeypatch, capsys): argument
80 monkeypatch.setattr(sys, "unraisablehook", hook)
Dtest_chrono.py105 def test_chrono_system_clock_roundtrip_time(time1, tz, monkeypatch): argument
107 monkeypatch.setenv("TZ", "/usr/share/zoneinfo/{}".format(tz))
/external/python/six/
Dtest_six.py382 def test_dictionary_iterators(monkeypatch): argument
413 monkeypatch.setattr(MyDict, stock_method_name(name), with_kw)
416 monkeypatch.undo()
693 def test_print_encoding(monkeypatch): argument
695 monkeypatch.setattr(six, "file", six.BytesIO, raising=False)
/external/python/pyopenssl/tests/
Dtest_ssl.py1172 def test_fallback_default_verify_paths(self, monkeypatch): argument
1182 monkeypatch.setattr(
1185 monkeypatch.setattr(
1190 monkeypatch.setattr(
1202 def test_check_env_vars(self, monkeypatch): argument
1210 monkeypatch.setenv(dir_var, "value")
1211 monkeypatch.setenv(file_var, "value")
1215 def test_verify_no_fallback_if_env_vars_set(self, monkeypatch): argument
1220 monkeypatch.setattr(
1229 monkeypatch.setenv(dir_env_var, "value")
[all …]
Dtest_crypto.py2289 self, cafile, capath, call_cafile, call_capath, monkeypatch argument
2298 monkeypatch.setattr(
4010 def test_failure_building_untrusted_chain_raises(self, monkeypatch): argument
4015 monkeypatch.setattr(_lib, "sk_X509_push", lambda _stack, _x509: -1)
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/artifacts/
Dbuild_artifact_python.bat34 @rem by enabling a monkeypatch. It speeds up the build a lot.
/external/python/cryptography/tests/x509/
Dtest_x509.py4202 def test_random_serial_number(monkeypatch): argument
4209 monkeypatch.setattr(os, "urandom", notrandom)
/external/python/setuptools/docs/
Dsetuptools.txt2553 to monkeypatch the ``distutils.command`` package to install your commands;
2607 Also note that as with commands, it is not necessary to subclass or monkeypatch
/external/python/setuptools/
DCHANGES.rst396 * #971: Correct distutils findall monkeypatch to match