Home
last modified time | relevance | path

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

/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/fonttools/Tests/ttx/
Dttx_test.py956 def test_main_keyboard_interrupt(tmpdir, monkeypatch, caplog): argument
961 monkeypatch.setattr(
973 def test_main_system_exit(tmpdir, monkeypatch): argument
978 monkeypatch.setattr(
984 def test_main_ttlib_error(tmpdir, monkeypatch, caplog): argument
989 monkeypatch.setattr(
1003 def test_main_base_exception(tmpdir, monkeypatch, caplog): argument
1008 monkeypatch.setattr(
/external/autotest/venv/lucifer/
Dautotest_unittest.py63 autotest.monkeypatch()
Dautotest.py48 def monkeypatch(): function
/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.py1110 def test_fallback_default_verify_paths(self, monkeypatch): argument
1120 monkeypatch.setattr(
1123 monkeypatch.setattr(
1128 monkeypatch.setattr(
1140 def test_check_env_vars(self, monkeypatch): argument
1148 monkeypatch.setenv(dir_var, "value")
1149 monkeypatch.setenv(file_var, "value")
1153 def test_verify_no_fallback_if_env_vars_set(self, monkeypatch): argument
1158 monkeypatch.setattr(
1167 monkeypatch.setenv(dir_env_var, "value")
[all …]
/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