Home
last modified time | relevance | path

Searched refs:monkeypatch (Results 26 – 50 of 1935) sorted by relevance

12345678910>>...78

/dports/devel/py-twine/twine-3.7.0/tests/
H A Dtest_check.py48 def test_check_no_distributions(monkeypatch): argument
57 def test_check_passing_distribution(monkeypatch): argument
70 monkeypatch.setattr(
93 monkeypatch.setattr(
104 def test_check_no_description(monkeypatch, capsys): argument
113 monkeypatch.setattr(
139 monkeypatch.setattr(
156 def test_check_failing_distribution(monkeypatch): argument
169 monkeypatch.setattr(
186 def test_main(monkeypatch): argument
[all …]
/dports/www/py-fastapi/fastapi-0.70.0/tests/
H A Dtest_multipart_installation.py9 def test_incorrect_multipart_installed_form(monkeypatch): argument
19 def test_incorrect_multipart_installed_file_upload(monkeypatch): argument
29 def test_incorrect_multipart_installed_file_bytes(monkeypatch): argument
39 def test_incorrect_multipart_installed_multi_form(monkeypatch): argument
49 def test_incorrect_multipart_installed_form_file(monkeypatch): argument
59 def test_no_multipart_installed(monkeypatch): argument
60 monkeypatch.delattr("multipart.__version__", raising=False)
69 def test_no_multipart_installed_file(monkeypatch): argument
79 def test_no_multipart_installed_file_bytes(monkeypatch): argument
89 def test_no_multipart_installed_multi_form(monkeypatch): argument
[all …]
/dports/www/py-flask/Flask-2.0.2/tests/
H A Dconftest.py7 from _pytest import monkeypatch
19 mp = monkeypatch.MonkeyPatch()
21 (os.environ, "FLASK_APP", monkeypatch.notset),
29 if value is monkeypatch.notset:
75 def test_apps(monkeypatch): argument
100 def limit_loader(request, monkeypatch): argument
131 def modules_tmpdir(tmpdir, monkeypatch): argument
134 monkeypatch.syspath_prepend(str(rv))
145 def site_packages(modules_tmpdir, monkeypatch): argument
152 monkeypatch.syspath_prepend(str(rv))
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/ansible/windows/tests/unit/plugins/action/
H A Dtest_win_updates.py156 def test_run_with_async(monkeypatch): argument
173 def test_failed_to_start_module(monkeypatch): argument
194 def test_failure_with_poll_script(monkeypatch): argument
210 def test_poll_script_invalid_json_output(monkeypatch): argument
226 def test_install_with_multiple_reboots(monkeypatch): argument
232 actual = run_action(monkeypatch, 'full_run.txt', {
257 def test_install_without_reboot(monkeypatch): argument
335 def test_install_with_reboot_fail(monkeypatch): argument
366 def test_install_with_reboot_check_mode(monkeypatch): argument
451 def test_install_non_integer_kb_values(monkeypatch): argument
[all …]
/dports/devel/py-ddtrace/ddtrace-0.56.1/tests/profiling/
H A Dtest_main.py12 def test_call_script(monkeypatch): argument
14 monkeypatch.setenv("DD_PROFILING_API_TIMEOUT", "0.1")
15 monkeypatch.setenv("DD_PROFILING_ENABLED", "1")
27 def test_call_script_gevent(monkeypatch): argument
28 monkeypatch.setenv("DD_PROFILING_API_TIMEOUT", "0.1")
33 def test_call_script_pprof_output(tmp_path, monkeypatch): argument
40 monkeypatch.setenv("DD_PROFILING_CAPTURE_PCT", "1")
41 monkeypatch.setenv("DD_PROFILING_ENABLED", "1")
48 def test_fork(tmp_path, monkeypatch): argument
63 def test_fork_gevent(monkeypatch): argument
[all …]
H A Dtest_profiler.py46 monkeypatch.setenv("DD_API_KEY", "foobar")
57 def test_service_api(monkeypatch): argument
69 def test_tracer_api(monkeypatch): argument
81 def test_env_default(monkeypatch): argument
83 monkeypatch.setenv("DD_ENV", "staging")
84 monkeypatch.setenv("DD_VERSION", "123")
128 def test_env_agentless(monkeypatch): argument
135 def test_env_agentless_site(monkeypatch): argument
143 def test_env_no_agentless(monkeypatch): argument
215 def test_env_endpoint_url(monkeypatch): argument
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/utils/
H A Dtest_standarddir.py46 def fake_home_envvar(monkeypatch, tmp_path): argument
49 monkeypatch.delenv(k, raising=False)
50 monkeypatch.setenv('HOME', str(tmp_path))
81 def test_unset_organization_no_qapp(monkeypatch): argument
100 def test_fake_windows(tmpdir, monkeypatch, what): argument
114 def test_fake_haiku(tmpdir, monkeypatch): argument
132 def test_empty(self, monkeypatch): argument
134 monkeypatch.setattr(
140 def test_sep(self, monkeypatch): argument
452 monkeypatch.setenv('HOME', str(tmpdir))
[all …]
/dports/archivers/py-borgbackup/borgbackup-1.1.17/src/borg/testsuite/
H A Dhelpers.py236 def test_ssh(self, monkeypatch): argument
245 def test_file(self, monkeypatch): argument
254 def test_scp(self, monkeypatch): argument
452 def test_get_base_dir(monkeypatch): argument
458 monkeypatch.setenv('USER', 'root')
466 def test_get_config_dir(monkeypatch): argument
477 def test_get_cache_dir(monkeypatch): argument
488 def test_get_keys_dir(monkeypatch): argument
672 def test_yes_env(monkeypatch): argument
747 monkeypatch.setenv('LINES', '1')
[all …]
/dports/devel/py-blessed/blessed-1.19.0/tests/
H A Dtest_formatters.py38 monkeypatch.setattr(curses, 'tparm', fn_tparm)
122 def test_formattingstring(monkeypatch): argument
139 def test_nested_formattingstring(monkeypatch): argument
172 def test_nullcallablestring(monkeypatch): argument
199 def test_resolve_capability(monkeypatch): argument
232 def test_resolve_color(monkeypatch): argument
301 monkeypatch.setattr(blessed.formatters,
325 monkeypatch.setattr(blessed.formatters,
328 monkeypatch.setattr(blessed.formatters,
354 monkeypatch.setattr(blessed.formatters,
[all …]
/dports/devel/py-apipkg/apipkg-1.5/
H A Dtest_apipkg.py106 monkeypatch.syspath_prepend(tmpdir)
126 monkeypatch.syspath_prepend(tmpdir)
243 def test_initpkg_nodoc(monkeypatch): argument
290 def test_initpkg_defaults(monkeypatch): argument
318 monkeypatch.syspath_prepend(tmpdir)
341 monkeypatch.syspath_prepend(tmpdir)
365 monkeypatch.syspath_prepend(tmpdir)
429 monkeypatch.syspath_prepend(tmpdir)
440 monkeypatch.syspath_prepend(tmpdir)
488 monkeypatch.syspath_prepend(tmpdir)
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/test/units/galaxy/
H A Dtest_api.py89 def test_api_token_auth_with_token_type(monkeypatch): argument
100 def test_api_token_auth_with_v3_url(monkeypatch): argument
143 def test_initialise_galaxy(monkeypatch): argument
166 def test_initialise_galaxy_with_auth(monkeypatch): argument
189 def test_initialise_automation_hub(monkeypatch): argument
211 def test_initialise_unknown(monkeypatch): argument
227 def test_get_available_api_versions(monkeypatch): argument
400 monkeypatch.setattr(Display, 'vvv', mock_vvv)
468 monkeypatch.setattr(Display, 'vvv', mock_vvv)
541 monkeypatch.setattr(Display, 'vvv', mock_vvv)
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/test/units/galaxy/
H A Dtest_api.py89 def test_api_token_auth_with_token_type(monkeypatch): argument
100 def test_api_token_auth_with_v3_url(monkeypatch): argument
143 def test_initialise_galaxy(monkeypatch): argument
166 def test_initialise_galaxy_with_auth(monkeypatch): argument
189 def test_initialise_automation_hub(monkeypatch): argument
211 def test_initialise_unknown(monkeypatch): argument
227 def test_get_available_api_versions(monkeypatch): argument
400 monkeypatch.setattr(Display, 'vvv', mock_vvv)
468 monkeypatch.setattr(Display, 'vvv', mock_vvv)
541 monkeypatch.setattr(Display, 'vvv', mock_vvv)
[all …]
/dports/devel/py-doit/doit-0.31.1/tests/
H A Dtest_doit_cmd.py30 def test_run_is_default(self, monkeypatch): argument
32 monkeypatch.setattr(Run, "execute", mock_run)
36 def test_run_other_subcommand(self, monkeypatch): argument
38 monkeypatch.setattr(List, "execute", mock_list)
42 def test_cmdline_vars(self, monkeypatch): argument
44 monkeypatch.setattr(Run, "execute", mock_run)
50 def test_cmdline_novars(self, monkeypatch): argument
52 monkeypatch.setattr(Run, "execute", mock_run)
62 monkeypatch.setattr(Run, "execute", mock_run)
89 def test_interrupt(self, monkeypatch): argument
[all …]
/dports/finance/electrum/Electrum-4.1.5/packages/qtpy/tests/
H A Dtest_macos_checks.py13 def test_qt59_exception(mac_ver, monkeypatch): argument
21 monkeypatch.setattr("sys.platform", 'darwin')
25 monkeypatch.setattr("PyQt5.QtCore.QT_VERSION_STR", '5.9.1')
37 def test_qt59_no_exception(mac_ver, monkeypatch): argument
45 monkeypatch.setattr("sys.platform", 'darwin')
49 monkeypatch.setattr("PyQt5.QtCore.QT_VERSION_STR", '5.9.5')
61 def test_qt511_exception(mac_ver, monkeypatch): argument
69 monkeypatch.setattr("sys.platform", 'darwin')
76 monkeypatch.setattr("PySide2.QtCore.__version__", '5.11.1')
89 def test_qt511_no_exception(mac_ver, monkeypatch): argument
[all …]
/dports/devel/py-QtPy/QtPy-1.11.3/qtpy/tests/
H A Dtest_macos_checks.py13 def test_qt59_exception(mac_ver, monkeypatch): argument
21 monkeypatch.setattr("sys.platform", 'darwin')
25 monkeypatch.setattr("PyQt5.QtCore.QT_VERSION_STR", '5.9.1')
37 def test_qt59_no_exception(mac_ver, monkeypatch): argument
45 monkeypatch.setattr("sys.platform", 'darwin')
49 monkeypatch.setattr("PyQt5.QtCore.QT_VERSION_STR", '5.9.5')
61 def test_qt511_exception(mac_ver, monkeypatch): argument
69 monkeypatch.setattr("sys.platform", 'darwin')
76 monkeypatch.setattr("PySide2.QtCore.__version__", '5.11.1')
89 def test_qt511_no_exception(mac_ver, monkeypatch): argument
[all …]
/dports/multimedia/py-soco/SoCo-0.25.2/tests/
H A Dtest_discovery.py28 def test_discover(self, monkeypatch): argument
37 monkeypatch.setattr(
105 _set_up_adapters(monkeypatch)
118 _set_up_adapters(monkeypatch)
123 _setup_sockets(monkeypatch)
129 def test__is_sonos(monkeypatch): argument
137 _setup_sockets(monkeypatch)
158 _setup_sockets(monkeypatch)
159 _set_up_adapters(monkeypatch)
201 def _set_up_adapters(monkeypatch): argument
[all …]
/dports/sysutils/py-liquidctl/liquidctl-1.7.2/tests/
H A Dtest_hidapi_device.py35 def test_opens(dev, monkeypatch): argument
48 def test_closes(dev, monkeypatch): argument
55 monkeypatch.setattr(dev.hiddev, 'close', _close, raising=False)
60 def test_can_clear_enqueued_reports(dev, monkeypatch): argument
77 monkeypatch.setattr(dev.hiddev, 'read', _read, raising=False)
99 monkeypatch.setattr(dev.hiddev, 'read', _read, raising=False)
104 def test_reads(dev, monkeypatch): argument
116 monkeypatch.setattr(dev.hiddev, 'read', _read, raising=False)
120 def test_can_write(dev, monkeypatch): argument
131 def test_gets_feature_report(dev, monkeypatch): argument
[all …]
/dports/graphics/py-fiona/Fiona-1.8.20/tests/
H A Dtest_env.py18 def test_nested_credentials(monkeypatch): argument
29 monkeypatch.setenv('AWS_ACCESS_KEY_ID', 'lol')
30 monkeypatch.setenv('AWS_SECRET_ACCESS_KEY', 'wut')
43 def test_ensure_env_decorator_sets_gdal_data(gdalenv, monkeypatch): argument
49 monkeypatch.setenv('GDAL_DATA', '/lol/wut')
62 monkeypatch.delenv('GDAL_DATA', raising=False)
63 monkeypatch.setattr(_env, '__file__', str(tmpdir.join("fake.py")))
64 monkeypatch.setattr(sys, 'prefix', str(tmpdir))
78 monkeypatch.delenv('GDAL_DATA', raising=False)
93 monkeypatch.delenv('GDAL_DATA', raising=False)
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/helpers/
H A Dfixtures.py235 monkeypatch): argument
453 def webpage(qnam, monkeypatch): argument
534 def fake_args(request, monkeypatch): argument
573 def config_tmpdir(monkeypatch, tmpdir): argument
578 monkeypatch.setattr(
588 monkeypatch.setattr(
595 def data_tmpdir(monkeypatch, tmpdir): argument
613 def cache_tmpdir(monkeypatch, tmpdir): argument
685 monkeypatch): argument
742 def freezer(request, monkeypatch): argument
[all …]
/dports/devel/py-pip/pip-20.3.4/tests/unit/
H A Dtest_utils_virtualenv.py22 monkeypatch, real_prefix, base_prefix, expected): argument
25 monkeypatch.delattr(sys, "real_prefix", raising=False)
29 monkeypatch.delattr(sys, "base_prefix", raising=False)
44 monkeypatch, argument
52 monkeypatch.setattr(site, '__file__', tmpdir / 'site.py')
53 monkeypatch.setattr(
90 monkeypatch, argument
97 monkeypatch.setattr(
100 monkeypatch.setattr(
126 monkeypatch, argument
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/test/units/plugins/lookup/
H A Dtest_laps_password.py134 def test_gssapi_without_sasl(monkeypatch, ): argument
135 monkeypatch.setattr("ldap.SASL_AVAIL", 0)
165 def test_ldaps_without_tls(monkeypatch, ): argument
166 monkeypatch.setattr("ldap.TLS_AVAIL", 0)
174 def test_start_tls_without_tls(monkeypatch, ): argument
175 monkeypatch.setattr("ldap.TLS_AVAIL", 0)
183 def test_normal_run(monkeypatch, laps_password): argument
348 def test_simple_auth_with_ldaps(monkeypatch): argument
389 def test_start_tls_ldap_error(monkeypatch): argument
400 def test_simple_bind_ldap_error(monkeypatch): argument
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/windows/tests/unit/plugins/lookup/
H A Dtest_laps_password.py119 def test_gssapi_without_sasl(monkeypatch, ): argument
120 monkeypatch.setattr("ldap.SASL_AVAIL", 0)
152 def test_ldaps_without_tls(monkeypatch, ): argument
153 monkeypatch.setattr("ldap.TLS_AVAIL", 0)
161 def test_start_tls_without_tls(monkeypatch, ): argument
162 monkeypatch.setattr("ldap.TLS_AVAIL", 0)
170 def test_normal_run(monkeypatch, laps_password): argument
340 def test_simple_auth_with_ldaps(monkeypatch): argument
381 def test_start_tls_ldap_error(monkeypatch): argument
392 def test_simple_bind_ldap_error(monkeypatch): argument
[all …]
/dports/devel/py-loguru/loguru-0.5.3/tests/
H A Dtest_defaults.py6 def test_string(value, monkeypatch): argument
8 monkeypatch.setenv(key, value)
13 def test_bool_positive(value, monkeypatch): argument
15 monkeypatch.setenv(key, value)
20 def test_bool_negative(value, monkeypatch): argument
22 monkeypatch.setenv(key, value)
26 def test_int(monkeypatch): argument
28 monkeypatch.setenv(key, "42")
33 def test_invalid_int(value, monkeypatch): argument
35 monkeypatch.setenv(key, value)
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/test/units/galaxy/
H A Dtest_api.py59 def cache_dir(tmp_path_factory, monkeypatch): argument
164 def test_api_token_auth_with_v3_url(monkeypatch): argument
207 def test_initialise_galaxy(monkeypatch): argument
230 def test_initialise_galaxy_with_auth(monkeypatch): argument
253 def test_initialise_automation_hub(monkeypatch): argument
275 def test_initialise_unknown(monkeypatch): argument
291 def test_get_available_api_versions(monkeypatch): argument
464 monkeypatch.setattr(Display, 'vvv', mock_vvv)
532 monkeypatch.setattr(Display, 'vvv', mock_vvv)
605 monkeypatch.setattr(Display, 'vvv', mock_vvv)
[all …]
/dports/shells/xonsh/xonsh-0.7.9/tests/
H A Dtest_main.py22 def shell(xonsh_builtins, xonsh_execer, monkeypatch): argument
25 monkeypatch.setattr(xonsh.main, "Shell", Shell)
28 def test_premain_no_arg(shell, monkeypatch): argument
29 monkeypatch.setattr(sys.stdin, "isatty", lambda: True)
55 def test_premain_custom_rc(shell, tmpdir, monkeypatch): argument
122 def test_xonsh_failback(shell, monkeypatch): argument
135 monkeypatch.setattr(os, "execlp", mocked_execlp)
137 monkeypatch.setattr(sys, "argv", ["xonsh", "-i"])
143 monkeypatch.setattr(builtins, "open", mocked_open)
149 def test_xonsh_failback_single(shell, monkeypatch): argument
[all …]

12345678910>>...78