Home
last modified time | relevance | path

Searched refs:monkeypatch (Results 76 – 100 of 1935) sorted by relevance

12345678910>>...78

/dports/devel/py-pyinstaller/PyInstaller-3.5/tests/functional/
H A Dtest_path_encodings.py46 monkeypatch.setenv('LC_ALL', 'C')
48 monkeypatch.setenv('TMPDIR', tmpdir)
49 monkeypatch.setenv('TMP', tmpdir)
67 monkeypatch.setenv('TMPDIR', tmpdir)
68 monkeypatch.setenv('TMP', tmpdir)
90 monkeypatch.setenv('TMPDIR', tmpdir)
91 monkeypatch.setenv('TMP', tmpdir)
126 monkeypatch.setenv('TMPDIR', tmpdir)
127 monkeypatch.setenv('TMP', tmpdir)
164 monkeypatch.setenv('TMPDIR', tmpdir)
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/utils/
H A Dtest_version.py598 def test_path_info(monkeypatch, equal): argument
634 def import_fake(stubs, monkeypatch): argument
780 def test_linux_fake(self, monkeypatch): argument
865 def test_unknown(self, monkeypatch): argument
866 monkeypatch.setattr(
890 monkeypatch.setattr(
1087 def test_avoided(self, monkeypatch): argument
1092 def patch_elf_fail(self, monkeypatch): argument
1097 def patch_old_pyqt(self, monkeypatch): argument
1107 }, monkeypatch)
[all …]
/dports/devel/py-pytest-django/pytest-django-3.10.0/tests/
H A Dtest_django_configurations.py26 def test_dc_env(testdir, monkeypatch): argument
27 monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "tpkg.settings_env")
28 monkeypatch.setenv("DJANGO_CONFIGURATION", "MySettings")
50 def test_dc_env_overrides_ini(testdir, monkeypatch): argument
51 monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "tpkg.settings_env")
52 monkeypatch.setenv("DJANGO_CONFIGURATION", "MySettings")
81 def test_dc_ini(testdir, monkeypatch): argument
82 monkeypatch.delenv("DJANGO_SETTINGS_MODULE")
111 def test_dc_option(testdir, monkeypatch): argument
112 monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "DO_NOT_USE_env")
[all …]
H A Dtest_manage_py_scan.py28 def test_django_project_found_with_k(django_testdir, monkeypatch): argument
38 monkeypatch.chdir(testfile.dirname)
47 def test_django_project_found_with_k_and_cwd(django_testdir, monkeypatch): argument
57 monkeypatch.chdir(testfile.dirname)
66 def test_django_project_found_absolute(django_testdir, monkeypatch): argument
75 monkeypatch.chdir("django_project_root")
85 def test_django_project_found_invalid_settings(django_testdir, monkeypatch): argument
86 monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "DOES_NOT_EXIST")
95 def test_django_project_scan_disabled_invalid_settings(django_testdir, monkeypatch): argument
96 monkeypatch.setenv("DJANGO_SETTINGS_MODULE", "DOES_NOT_EXIST")
[all …]
/dports/devel/py-click7/click-7.1.2/tests/
H A Dtest_termui.py29 def test_progressbar_strip_regression(runner, monkeypatch): argument
39 monkeypatch.setattr(time, "time", fake_clock.time)
44 def test_progressbar_length_hint(runner, monkeypatch): argument
71 monkeypatch.setattr(time, "time", fake_clock.time)
77 def test_progressbar_hidden(runner, monkeypatch): argument
87 monkeypatch.setattr(time, "time", fake_clock.time)
196 def test_progressbar_is_iterator(runner, monkeypatch): argument
209 monkeypatch.setattr(time, "time", fake_clock.time)
216 def test_choices_list_in_prompt(runner, monkeypatch): argument
266 def test_progressbar_update(runner, monkeypatch): argument
[all …]
/dports/science/py-scikit-learn/scikit-learn-1.0.2/sklearn/datasets/tests/
H A Dtest_openml.py366 def test_fetch_openml_iris_pandas(monkeypatch): argument
478 def test_fetch_openml_anneal_pandas(monkeypatch): argument
520 def test_fetch_openml_cpu_pandas(monkeypatch): argument
602 def test_fetch_openml_as_frame_auto(monkeypatch): argument
749 def test_fetch_openml_emotions_pandas(monkeypatch): argument
798 def test_fetch_openml_titanic_pandas(monkeypatch): argument
896 def test_decode_iris(monkeypatch): argument
956 def test_decode_anneal(monkeypatch): argument
1015 def test_decode_cpu(monkeypatch): argument
1146 def test_decode_emotions(monkeypatch): argument
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/test/units/modules/crypto/
H A Dtest_luks_device.py22 def test_generate_luks_name(monkeypatch): argument
30 def test_get_container_name_by_device(monkeypatch): argument
38 def test_get_container_device_by_name(monkeypatch): argument
46 def test_run_luks_remove(monkeypatch): argument
53 monkeypatch.setattr(luks_device.CryptHandler,
56 monkeypatch.setattr(luks_device.Handler,
157 expected, monkeypatch): argument
164 monkeypatch.setattr(luks_device.CryptHandler,
180 expected, monkeypatch): argument
186 monkeypatch.setattr(luks_device.CryptHandler,
[all …]
/dports/x11-wm/qtile/qtile-0.18.1/test/widgets/
H A Dtest_battery.py38 def test_text_battery_charging(monkeypatch): argument
46 with monkeypatch.context() as manager:
62 with monkeypatch.context() as manager:
70 def test_text_battery_full(monkeypatch): argument
78 with monkeypatch.context() as manager:
85 with monkeypatch.context() as manager:
93 def test_text_battery_empty(monkeypatch): argument
101 with monkeypatch.context() as manager:
108 with monkeypatch.context() as manager:
122 with monkeypatch.context() as manager:
[all …]
/dports/devel/py-setuptools_scm/setuptools_scm-6.3.2/testing/
H A Dtest_basic_api.py28 def test_version_from_pkginfo(wd, monkeypatch): argument
37 def assert_root(monkeypatch, expected_root): argument
48 def test_root_parameter_creation(monkeypatch): argument
49 assert_root(monkeypatch, os.getcwd())
59 assert_root(monkeypatch, tmpdir)
63 def test_parentdir_prefix(tmpdir, monkeypatch): argument
64 monkeypatch.delenv("SETUPTOOLS_SCM_DEBUG")
75 def test_fallback(tmpdir, monkeypatch): argument
76 monkeypatch.delenv("SETUPTOOLS_SCM_DEBUG")
90 def test_pretended(version, monkeypatch): argument
[all …]
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/browser/webengine/
H A Dtest_webenginesettings.py31 def global_settings(monkeypatch, default_profile): argument
35 monkeypatch.setattr(webenginesettings, '_global_settings', settings)
39 def default_profile(monkeypatch): argument
46 monkeypatch.setattr(profile, 'isOffTheRecord', lambda: False)
47 monkeypatch.setattr(webenginesettings, 'default_profile', profile)
52 def private_profile(monkeypatch): argument
56 monkeypatch.setattr(webenginesettings, 'private_profile', profile)
69 monkeypatch.setattr(webenginesettings.spell, 'local_filename',
82 def test_existing_dict(config_stub, monkeypatch, global_settings, argument
84 monkeypatch.setattr(webenginesettings.spell, 'local_filename',
[all …]
/dports/devel/py-py/py-1.9.0/testing/io_/
H A Dtest_terminalwriter.py13 def test_getdimensions(monkeypatch): argument
31 def test_terminal_width_COLUMNS(monkeypatch): argument
36 monkeypatch.setenv('COLUMNS', '42')
38 monkeypatch.delenv('COLUMNS', raising=False)
40 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
42 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.delenv('COLUMNS', raising=False)
55 monkeypatch.setenv('COLUMNS', '42')
59 def test_terminalwriter_computes_width(monkeypatch): argument
74 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/sysutils/py-ansible-lint/ansible-lint-5.3.1/test/
H A Dtest_prerun.py7 from _pytest.monkeypatch import MonkeyPatch
48 monkeypatch.delenv("DUMMY_VAR", raising=False)
57 monkeypatch.delenv("DUMMY_VAR", raising=False)
66 monkeypatch.setenv("DUMMY_VAR", "a:b")
82 monkeypatch: MonkeyPatch, value: List[str], result: str
85 monkeypatch.delenv("DUMMY_VAR", raising=False)
100 monkeypatch: MonkeyPatch, default: str, value: List[str], result: str
103 monkeypatch.delenv("DUMMY_VAR", raising=False)
121 monkeypatch.setenv("DUMMY_VAR", old_value)
138 monkeypatch: MonkeyPatch,
[all …]
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/io/
H A Dtest_terminalwriter.py11 from _pytest.monkeypatch import MonkeyPatch
18 monkeypatch.setenv("COLUMNS", "42")
20 monkeypatch.delenv("COLUMNS", raising=False)
25 monkeypatch.delenv("COLUMNS", raising=False)
45 with monkeypatch.context() as m:
188 monkeypatch.setitem(os.environ, "PY_COLORS", "1")
193 monkeypatch.setitem(os.environ, "PY_COLORS", "0")
198 monkeypatch.setitem(os.environ, "NO_COLOR", "1")
203 monkeypatch.setitem(os.environ, "FORCE_COLOR", "1")
208 monkeypatch: MonkeyPatch,
[all …]
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/testing/io/
H A Dtest_terminalwriter.py11 from _pytest.monkeypatch import MonkeyPatch
18 monkeypatch.setenv("COLUMNS", "42")
20 monkeypatch.delenv("COLUMNS", raising=False)
25 monkeypatch.delenv("COLUMNS", raising=False)
45 with monkeypatch.context() as m:
188 monkeypatch.setitem(os.environ, "PY_COLORS", "1")
193 monkeypatch.setitem(os.environ, "PY_COLORS", "0")
198 monkeypatch.setitem(os.environ, "NO_COLOR", "1")
203 monkeypatch.setitem(os.environ, "FORCE_COLOR", "1")
208 monkeypatch: MonkeyPatch,
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/io/
H A Dtest_terminalwriter.py11 from _pytest.monkeypatch import MonkeyPatch
18 monkeypatch.setenv("COLUMNS", "42")
20 monkeypatch.delenv("COLUMNS", raising=False)
25 monkeypatch.delenv("COLUMNS", raising=False)
45 with monkeypatch.context() as m:
188 monkeypatch.setitem(os.environ, "PY_COLORS", "1")
193 monkeypatch.setitem(os.environ, "PY_COLORS", "0")
198 monkeypatch.setitem(os.environ, "NO_COLOR", "1")
203 monkeypatch.setitem(os.environ, "FORCE_COLOR", "1")
208 monkeypatch: MonkeyPatch,
[all …]
/dports/www/flexget/Flexget-3.2.18/flexget/tests/
H A Dtest_wordpress.py11 def _mock_session_response(mock_, monkeypatch):
15 monkeypatch.setattr('requests.Session.send', mocked_send)
28 def test_task_aborts_for_status_not_ok(self, execute_task, monkeypatch):
30 _mock_session_response(mock.Mock(ok=False), monkeypatch)
33 def test_task_aborts_for_requests_exception(self, execute_task, monkeypatch):
35 monkeypatch.setattr('requests.Session.send', mock.Mock(side_effect=RequestException))
38 def test_task_aborts_when_response_has_no_valid_cookies(self, execute_task, monkeypatch):
45 mock.Mock(cookies=cookiejar_from_dict(invalid_cookies), history=[]), monkeypatch
49 def test_cookies_collected_across_redirects(self, execute_task, monkeypatch):
56 mock.Mock(cookies=RequestsCookieJar(), history=mock_history), monkeypatch
/dports/graphics/py-rasterio/rasterio-1.2.10/tests/
H A Dtest_env.py127 monkeypatch.setenv('GDAL_DATA', '/lol/wut')
166 monkeypatch.setenv('AWS_ACCESS_KEY_ID', 'id')
179 monkeypatch.undo()
197 monkeypatch.undo()
280 monkeypatch.undo()
346 with monkeypatch.context() as mpctx:
430 monkeypatch.undo()
822 def test_nested_credentials(monkeypatch): argument
908 with monkeypatch.context() as mpctx:
917 with monkeypatch.context() as mpctx:
[all …]
/dports/devel/py-wheel/wheel-0.36.2/tests/
H A Dtest_bdist_wheel.py64 def test_licenses_default(dummy_dist, monkeypatch, tmpdir): argument
65 monkeypatch.chdir(dummy_dist)
75 monkeypatch.chdir(dummy_dist)
85 monkeypatch.chdir(dummy_dist)
95 monkeypatch.chdir(dummy_dist)
102 def test_build_number(dummy_dist, monkeypatch, tmpdir): argument
103 monkeypatch.chdir(dummy_dist)
113 def test_limited_abi(monkeypatch, tmpdir): argument
119 monkeypatch.chdir(source_dir)
127 monkeypatch.chdir(basedir)
[all …]
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/testing/web-platform/tests/tools/third_party/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/web-platform/tests/tools/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]
/dports/lang/spidermonkey78/firefox-78.9.0/testing/web-platform/tests/tools/third_party/py/testing/io_/
H A Dtest_terminalwriter.py12 def test_getdimensions(monkeypatch): argument
24 def test_terminal_width_COLUMNS(monkeypatch): argument
29 monkeypatch.setenv('COLUMNS', '42')
31 monkeypatch.delenv('COLUMNS', raising=False)
33 def test_terminalwriter_defaultwidth_80(monkeypatch): argument
35 monkeypatch.delenv('COLUMNS', raising=False)
41 monkeypatch.delenv('COLUMNS', raising=False)
48 monkeypatch.setenv('COLUMNS', '42')
52 def test_terminalwriter_computes_width(monkeypatch): argument
67 monkeypatch.setattr(sys, 'stdout', MyFile())
[all …]

12345678910>>...78