Home
last modified time | relevance | path

Searched refs:monkeypatch (Results 151 – 175 of 1935) sorted by relevance

12345678910>>...78

/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/plugins/connection/
H A Dtest_winrm.py240 monkeypatch.setattr("subprocess.Popen", mock_popen)
269 monkeypatch.setattr("pexpect.spawn", mock_pexpect)
297 monkeypatch.setattr("subprocess.Popen", mock_popen)
320 monkeypatch.setattr("pexpect.spawn", mock_pexpect)
335 def test_kinit_error_subprocess(self, monkeypatch): argument
345 monkeypatch.setattr("subprocess.Popen", mock_popen)
361 def test_kinit_error_pexpect(self, monkeypatch): argument
370 monkeypatch.setattr("pexpect.spawn", mock_pexpect)
393 monkeypatch.setattr("subprocess.Popen", mock_popen)
408 def test_kinit_error_pass_in_output_pexpect(self, monkeypatch): argument
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/plugins/connection/
H A Dtest_winrm.py244 monkeypatch.setattr("subprocess.Popen", mock_popen)
277 monkeypatch.setattr("pexpect.spawn", mock_pexpect)
305 monkeypatch.setattr("subprocess.Popen", mock_popen)
328 monkeypatch.setattr("pexpect.spawn", mock_pexpect)
343 def test_kinit_error_subprocess(self, monkeypatch): argument
353 monkeypatch.setattr("subprocess.Popen", mock_popen)
369 def test_kinit_error_pexpect(self, monkeypatch): argument
378 monkeypatch.setattr("pexpect.spawn", mock_pexpect)
401 monkeypatch.setattr("subprocess.Popen", mock_popen)
416 def test_kinit_error_pass_in_output_pexpect(self, monkeypatch): argument
[all …]
/dports/sysutils/py-ansible-lint/ansible-lint-5.3.1/test/
H A DTestUtils.py36 from _pytest.monkeypatch import MonkeyPatch
229 def test_expand_path_vars(monkeypatch: MonkeyPatch) -> None:
232 monkeypatch.setenv('TEST_PATH', test_path)
250 monkeypatch.setenv('TEST_PATH', '/test/path')
267 monkeypatch: MonkeyPatch,
273 monkeypatch.setenv(reset_env_var, '')
298 monkeypatch.setenv('GIT_DIR', '')
304 monkeypatch.chdir(str(lint_path))
321 monkeypatch.chdir(str(lint_path))
443 def test_auto_detect_exclude(monkeypatch: MonkeyPatch) -> None:
[all …]
/dports/www/py-bokeh/bokeh-2.3.3/tests/unit/bokeh/
H A Dtest_resources.py117 monkeypatch.setattr(buv, "__version__", "1.4.0")
127 monkeypatch.setattr(buv, "__version__", v)
128 monkeypatch.setattr(resources, "__version__", v)
185 def test_cdn(self, monkeypatch) -> None: argument
186 monkeypatch.setattr(resources, "__version__", "1.0")
327 monkeypatch.setenv(env, "foo")
334 monkeypatch.setattr(buv, "__version__", "2.0.0")
347 monkeypatch.setattr(buv, "__version__", v)
348 monkeypatch.setattr(resources, "__version__", v)
370 monkeypatch.setattr(buv, "__version__", v)
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/test/units/galaxy/
H A Dtest_collection_install.py228 monkeypatch.setattr(Display, 'display', mock_display)
337 def test_build_requirement_from_name(galaxy_server, monkeypatch): argument
546 monkeypatch.setattr(Display, 'display', mock_display)
613 def test_install_skipped_collection(monkeypatch): argument
615 monkeypatch.setattr(Display, 'display', mock_display)
624 def test_install_collection(collection_artifact, monkeypatch): argument
626 monkeypatch.setattr(Display, 'display', mock_display)
662 monkeypatch.setattr(Display, 'display', mock_display)
703 monkeypatch.setattr(Display, 'display', mock_display)
735 monkeypatch.setattr(Display, 'display', mock_display)
[all …]
/dports/devel/py-setuptools/setuptools-57.0.0/setuptools/tests/
H A Dtest_easy_install.py42 def pip_disable_index(monkeypatch): argument
48 monkeypatch.setenv('PIP_NO_INDEX', 'true')
114 def test_all_site_dirs(self, monkeypatch): argument
166 self, sdist_unicode, tmpdir, monkeypatch): argument
456 monkeypatch.setenv(str('PIP_RETRIES'), str('0'))
457 monkeypatch.setenv(str('PIP_TIMEOUT'), str('0'))
458 monkeypatch.setenv('PIP_NO_INDEX', 'false')
629 monkeypatch.setenv(str('PIP_RETRIES'), str('0'))
631 monkeypatch.setenv('PIP_NO_INDEX', 'false')
747 self, monkeypatch, argument
[all …]
/dports/devel/py-pdm/pdm-1.11.0/tests/cli/
H A Dtest_plugin.py9 def mock_pip(monkeypatch): argument
11 monkeypatch.setattr(plugin, "run_pip", mocked)
16 def mock_all_plugins(monkeypatch): argument
17 monkeypatch.setattr(plugin, "_all_plugins", Mock(return_value=["demo"]))
18 monkeypatch.setattr(
47 def test_plugin_remove(invoke, mock_pip, monkeypatch): argument
51 monkeypatch.setattr(
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/parsing/yaml/
H A Dtest_constructor.py53 def test_duplicate_yaml_dict_key_ignore(dupe_node, monkeypatch):
54 monkeypatch.setattr(C, 'DUPLICATE_YAML_DICT_KEY', 'ignore')
56 monkeypatch.setattr(Display(), 'warning', cap)
62 def test_duplicate_yaml_dict_key_warn(dupe_node, monkeypatch):
63 monkeypatch.setattr(C, 'DUPLICATE_YAML_DICT_KEY', 'warn')
65 monkeypatch.setattr(Display(), 'warning', cap)
81 def test_duplicate_yaml_dict_key_error(dupe_node, monkeypatch, mocker):
82 monkeypatch.setattr(C, 'DUPLICATE_YAML_DICT_KEY', 'error')
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/thirdparty/pybind11/tests/extra_setuptools/
H A Dtest_setuphelper.py15 def test_simple_setup_py(monkeypatch, tmpdir, parallel, std): argument
16 monkeypatch.chdir(tmpdir)
17 monkeypatch.syspath_prepend(MAIN_DIR)
104 def test_intree_extensions(monkeypatch, tmpdir): argument
105 monkeypatch.syspath_prepend(MAIN_DIR)
109 monkeypatch.chdir(tmpdir)
123 def test_intree_extensions_package_dir(monkeypatch, tmpdir): argument
124 monkeypatch.syspath_prepend(MAIN_DIR)
128 monkeypatch.chdir(tmpdir)
/dports/deskutils/py-vdirsyncer/vdirsyncer-0.18.0/tests/unit/cli/
H A Dtest_fetchparams.py14 def mystrategy(monkeypatch): argument
20 monkeypatch.setitem(STRATEGIES, "mystrategy", strategy)
36 def value_cache(monkeypatch): argument
48 monkeypatch.setattr("click.get_current_context", get_context)
52 def test_key_conflict(monkeypatch, mystrategy): argument
84 def test_caching(monkeypatch, mystrategy, value_cache): argument
104 def test_failed_strategy(monkeypatch, value_cache): argument
111 monkeypatch.setitem(STRATEGIES, "mystrategy", strategy)
123 def test_empty_value(monkeypatch, mystrategy): argument
/dports/devel/pybind11/pybind11-2.8.1/tests/extra_setuptools/
H A Dtest_setuphelper.py15 def test_simple_setup_py(monkeypatch, tmpdir, parallel, std): argument
16 monkeypatch.chdir(tmpdir)
17 monkeypatch.syspath_prepend(MAIN_DIR)
104 def test_intree_extensions(monkeypatch, tmpdir): argument
105 monkeypatch.syspath_prepend(MAIN_DIR)
109 monkeypatch.chdir(tmpdir)
123 def test_intree_extensions_package_dir(monkeypatch, tmpdir): argument
124 monkeypatch.syspath_prepend(MAIN_DIR)
128 monkeypatch.chdir(tmpdir)
/dports/science/smoldyn/smoldyn-2.67/source/pybind11/tests/extra_setuptools/
H A Dtest_setuphelper.py15 def test_simple_setup_py(monkeypatch, tmpdir, parallel, std): argument
16 monkeypatch.chdir(tmpdir)
17 monkeypatch.syspath_prepend(MAIN_DIR)
104 def test_intree_extensions(monkeypatch, tmpdir): argument
105 monkeypatch.syspath_prepend(MAIN_DIR)
109 monkeypatch.chdir(tmpdir)
123 def test_intree_extensions_package_dir(monkeypatch, tmpdir): argument
124 monkeypatch.syspath_prepend(MAIN_DIR)
128 monkeypatch.chdir(tmpdir)
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/scripts/
H A Dtest_dictcli.py63 def dict_tmp_path(tmp_path, monkeypatch): argument
64 monkeypatch.setattr(spell, 'dictionary_dir', lambda: str(tmp_path))
86 def test_available_languages(dict_tmp_path, monkeypatch): argument
89 monkeypatch.setattr(dictcli, 'language_list_from_api', lambda: [
123 def test_install(dict_tmp_path, monkeypatch): argument
125 monkeypatch.setattr(
138 def test_update(dict_tmp_path, monkeypatch): argument
140 monkeypatch.setattr(
153 def test_remove_old(dict_tmp_path, monkeypatch): argument
155 monkeypatch.setattr(
/dports/net/py-zeep/zeep-4.1.0/tests/
H A Dtest_wsa.py11 def test_require_wsa(recwarn, monkeypatch): argument
12 monkeypatch.setattr(
102 def test_duplicate_message_wsa(recwarn, monkeypatch): argument
103 monkeypatch.setattr(
206 def test_force_wsa(recwarn, monkeypatch): argument
207 monkeypatch.setattr(
294 def test_force_wsa_soap12(recwarn, monkeypatch): argument
295 monkeypatch.setattr(
389 def test_require_wsa_new(recwarn, monkeypatch): argument
390 monkeypatch.setattr(
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/browser/webkit/
H A Dtest_cookies.py80 def set_webkit_backend(self, monkeypatch): argument
83 def test_accept(self, config_stub, qtbot, monkeypatch, argument
98 def test_never_accept(self, qtbot, config_stub, monkeypatch, argument
107 def test_per_url(self, config_stub, qtbot, monkeypatch, argument
123 def test_logging(self, monkeypatch, caplog, config_stub, argument
125 monkeypatch.setattr(objects, 'debug_flags', ['log-cookies'])
158 def test_save(config_stub, fake_save_manager, monkeypatch, qapp): argument
160 monkeypatch.setattr(lineparser, 'LineParser', LineparserSaveStub)
173 monkeypatch, qtbot): argument
175 monkeypatch.setattr(lineparser, 'LineParser', LineparserSaveStub)
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/test/units/config/manager/
H A Dtest_find_ini_config_file.py49 def setup_existing_files(request, monkeypatch): argument
63 monkeypatch.setattr("os.path.exists", _os_path_exists)
64 monkeypatch.setattr("os.access", _os_access)
65 monkeypatch.setattr("os.getcwd", lambda: os.path.dirname(cfg_dir))
135 def test_cwd_does_not_exist(self, setup_env, setup_existing_files, monkeypatch): argument
139 monkeypatch.setattr('os.stat', _os_stat)
173 monkeypatch.setattr('os.stat', _os_stat)
185 def test_cwd_warning_on_writable(self, setup_env, setup_existing_files, monkeypatch): argument
198 monkeypatch.setattr('os.stat', _os_stat)
226 monkeypatch.setattr('os.stat', _os_stat)
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/config/manager/
H A Dtest_find_ini_config_file.py49 def setup_existing_files(request, monkeypatch): argument
63 monkeypatch.setattr("os.path.exists", _os_path_exists)
64 monkeypatch.setattr("os.access", _os_access)
65 monkeypatch.setattr("os.getcwd", lambda: os.path.dirname(cfg_dir))
135 def test_cwd_does_not_exist(self, setup_env, setup_existing_files, monkeypatch): argument
139 monkeypatch.setattr('os.stat', _os_stat)
173 monkeypatch.setattr('os.stat', _os_stat)
185 def test_cwd_warning_on_writable(self, setup_env, setup_existing_files, monkeypatch): argument
198 monkeypatch.setattr('os.stat', _os_stat)
226 monkeypatch.setattr('os.stat', _os_stat)
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/config/manager/
H A Dtest_find_ini_config_file.py49 def setup_existing_files(request, monkeypatch): argument
63 monkeypatch.setattr("os.path.exists", _os_path_exists)
64 monkeypatch.setattr("os.access", _os_access)
65 monkeypatch.setattr("os.getcwd", lambda: os.path.dirname(cfg_dir))
135 def test_cwd_does_not_exist(self, setup_env, setup_existing_files, monkeypatch): argument
139 monkeypatch.setattr('os.stat', _os_stat)
173 monkeypatch.setattr('os.stat', _os_stat)
185 def test_cwd_warning_on_writable(self, setup_env, setup_existing_files, monkeypatch): argument
198 monkeypatch.setattr('os.stat', _os_stat)
226 monkeypatch.setattr('os.stat', _os_stat)
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/galaxy/
H A Dtest_collection_install.py228 monkeypatch.setattr(Display, 'display', mock_display)
546 monkeypatch.setattr(Display, 'display', mock_display)
613 def test_install_skipped_collection(monkeypatch): argument
615 monkeypatch.setattr(Display, 'display', mock_display)
624 def test_install_collection(collection_artifact, monkeypatch): argument
626 monkeypatch.setattr(Display, 'display', mock_display)
663 monkeypatch.setattr(Display, 'display', mock_display)
705 monkeypatch.setattr(Display, 'display', mock_display)
737 monkeypatch.setattr(Display, 'display', mock_display)
766 monkeypatch.setattr(Display, 'display', mock_display)
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/testing/mozbase/mozdevice/tests/
H A Dconftest.py24 def mock_command_output(monkeypatch): argument
45 monkeypatch.setattr(mozdevice.ADBDevice,
50 def mock_shell_output(monkeypatch): argument
83 monkeypatch.setattr(mozdevice.ADBDevice, 'shell_output', shell_output_wrapper)
87 def mock_is_path_internal_storage(monkeypatch): argument
114 monkeypatch.setattr(mozdevice.ADBDevice,
119 def mock_shell_bool(monkeypatch): argument
144 monkeypatch.setattr(mozdevice.ADBDevice, 'shell_bool', shell_bool_wrapper)
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/testing/
H A Dtest_pastebin.py9 def pastebinlist(self, monkeypatch, request) -> List[Union[str, bytes]]: argument
12 monkeypatch.setattr(plugin, "create_new_paste", pastebinlist.append)
89 def mocked_urlopen_fail(self, monkeypatch): argument
100 monkeypatch.setattr(urllib.request, "urlopen", mocked)
104 def mocked_urlopen_invalid(self, monkeypatch): argument
122 monkeypatch.setattr(urllib.request, "urlopen", mocked)
126 def mocked_urlopen(self, monkeypatch): argument
143 monkeypatch.setattr(urllib.request, "urlopen", mocked)
171 def test_create_new_paste_failure(self, pastebin, monkeypatch): argument
179 monkeypatch.setattr(urllib.request, "urlopen", response)
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/
H A Dtest_pastebin.py9 def pastebinlist(self, monkeypatch, request) -> List[Union[str, bytes]]: argument
12 monkeypatch.setattr(plugin, "create_new_paste", pastebinlist.append)
89 def mocked_urlopen_fail(self, monkeypatch): argument
100 monkeypatch.setattr(urllib.request, "urlopen", mocked)
104 def mocked_urlopen_invalid(self, monkeypatch): argument
122 monkeypatch.setattr(urllib.request, "urlopen", mocked)
126 def mocked_urlopen(self, monkeypatch): argument
143 monkeypatch.setattr(urllib.request, "urlopen", mocked)
171 def test_create_new_paste_failure(self, pastebin, monkeypatch): argument
179 monkeypatch.setattr(urllib.request, "urlopen", response)
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/
H A Dtest_pastebin.py9 def pastebinlist(self, monkeypatch, request) -> List[Union[str, bytes]]: argument
12 monkeypatch.setattr(plugin, "create_new_paste", pastebinlist.append)
89 def mocked_urlopen_fail(self, monkeypatch): argument
100 monkeypatch.setattr(urllib.request, "urlopen", mocked)
104 def mocked_urlopen_invalid(self, monkeypatch): argument
122 monkeypatch.setattr(urllib.request, "urlopen", mocked)
126 def mocked_urlopen(self, monkeypatch): argument
143 monkeypatch.setattr(urllib.request, "urlopen", mocked)
171 def test_create_new_paste_failure(self, pastebin, monkeypatch): argument
179 monkeypatch.setattr(urllib.request, "urlopen", response)
/dports/sysutils/py-focker/focker-ce2108e3/tests/
H A Dtest_focker.py50 def test_parser_jail(monkeypatch): argument
59 monkeypatch.setattr(parser, 'parse_args', count_calls(parser.parse_args, counter))
114 def test_parser_volume(monkeypatch): argument
177 def test_focker_main_01(monkeypatch): argument
184 monkeypatch.setattr(focker.focker, 'focker_lock', log_call(focker_lock))
185 monkeypatch.setattr(focker.focker, 'zfs_init', log_call(zfs_init))
186 monkeypatch.setattr(focker.focker, 'create_parser', log_call(create_parser))
188 monkeypatch.setattr(sys, 'argv', ['focker', 'image', 'list'])
197 def test_focker_main_02(monkeypatch): argument
204 monkeypatch.setattr(sys, 'argv', ['focker'])
[all …]
/dports/graphics/py-rasterio/rasterio-1.2.10/tests/
H A Dtest_session.py63 def test_aws_session_class_profile(tmpdir, monkeypatch): argument
72 monkeypatch.setenv('AWS_SESSION_TOKEN', 'ignore_me')
78 monkeypatch.undo()
125 def test_session_factory_s3_no_boto3(monkeypatch): argument
128 with monkeypatch.context() as mpctx:
235 def test_session_aws_or_dummy_dummy(monkeypatch): argument
238 with monkeypatch.context() as mpctx:
243 def test_no_sign_request(monkeypatch): argument
245 monkeypatch.setenv("AWS_NO_SIGN_REQUEST", "YES")
288 def test_azure_no_sign_request(monkeypatch): argument
[all …]

12345678910>>...78