/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/ |
H A D | test_config.py | 28 from _pytest.monkeypatch import MonkeyPatch 46 monkeypatch: MonkeyPatch, 50 monkeypatch.chdir(sub) 1251 monkeypatch.chdir(tmp_path) 1307 monkeypatch.chdir(tmp_path) 1338 monkeypatch.chdir(tmp_path) 1362 monkeypatch.chdir(tmp_path) 1373 monkeypatch.chdir(tmp_path) 1386 monkeypatch.chdir(tmp_path / "myproject") 1542 monkeypatch.setenv("PYTEST_ADDOPTS", "-o") [all …]
|
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/testing/ |
H A D | test_config.py | 28 from _pytest.monkeypatch import MonkeyPatch 46 monkeypatch: MonkeyPatch, 50 monkeypatch.chdir(sub) 1251 monkeypatch.chdir(tmp_path) 1307 monkeypatch.chdir(tmp_path) 1338 monkeypatch.chdir(tmp_path) 1362 monkeypatch.chdir(tmp_path) 1373 monkeypatch.chdir(tmp_path) 1386 monkeypatch.chdir(tmp_path / "myproject") 1542 monkeypatch.setenv("PYTEST_ADDOPTS", "-o") [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/testing/ |
H A D | test_config.py | 28 from _pytest.monkeypatch import MonkeyPatch 46 monkeypatch: MonkeyPatch, 50 monkeypatch.chdir(sub) 1251 monkeypatch.chdir(tmp_path) 1307 monkeypatch.chdir(tmp_path) 1338 monkeypatch.chdir(tmp_path) 1362 monkeypatch.chdir(tmp_path) 1373 monkeypatch.chdir(tmp_path) 1386 monkeypatch.chdir(tmp_path / "myproject") 1542 monkeypatch.setenv("PYTEST_ADDOPTS", "-o") [all …]
|
/dports/security/py-google-auth/google-auth-2.3.3/tests/oauth2/ |
H A D | test_id_token.py | 204 def test_fetch_id_token_credentials_optional_request(monkeypatch): argument 205 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False) 219 def test_fetch_id_token_credentials_from_metadata_server(monkeypatch): argument 220 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False) 242 def test_fetch_id_token_credentials_no_cred_exists(monkeypatch): argument 243 monkeypatch.delenv(environment_vars.CREDENTIALS, raising=False) 277 def test_fetch_id_token_credentials_invalid_json(monkeypatch): argument 279 monkeypatch.setenv(environment_vars.CREDENTIALS, not_json_file) 288 def test_fetch_id_token_credentials_invalid_cred_path(monkeypatch): argument 290 monkeypatch.setenv(environment_vars.CREDENTIALS, not_json_file) [all …]
|
/dports/databases/pgbarman/barman-release-2.17/tests/ |
H A D | test_diagnose.py | 58 def test_diagnose_json(self, info_mock_output, close_exit_mock, monkeypatch): argument 59 monkeypatch.setattr(barman, "__config__", self.test_config) 70 self, info_mock_output, close_exit_mock, monkeypatch argument 72 monkeypatch.setattr(barman, "__config__", self.test_config_with_pwd) 83 def test_diagnose_rerun(self, info_mock_output, close_exit_mock, monkeypatch): argument 84 monkeypatch.setattr(barman, "__config__", self.test_config)
|
/dports/math/py-keras-preprocessing/keras-preprocessing-1.1.0/tests/image/ |
H A D | affine_transformations_test.py | 41 def test_apply_brightness_shift_error(monkeypatch): argument 42 monkeypatch.setattr(affine_transformations, 'ImageEnhance', None) 47 def test_random_brightness(monkeypatch): argument 48 monkeypatch.setattr(affine_transformations, 58 def test_apply_affine_transform_error(monkeypatch): argument 59 monkeypatch.setattr(affine_transformations, 'scipy', None)
|
/dports/graphics/py-cartopy/Cartopy-0.19.0.post1/lib/cartopy/tests/ |
H A D | test_features.py | 39 def test_intersecting_geometries_small(self, monkeypatch): argument 41 monkeypatch.setattr(auto_land, 'geometries', lambda: []) 47 def test_intersecting_geometries_medium(self, monkeypatch): argument 49 monkeypatch.setattr(auto_land, 'geometries', lambda: []) 55 def test_intersecting_geometries_large(self, monkeypatch): argument 57 monkeypatch.setattr(auto_land, 'geometries', lambda: [])
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/io/formats/ |
H A D | test_console.py | 32 def test_detect_console_encoding_from_stdout_stdin(monkeypatch, empty, filled): argument 36 with monkeypatch.context() as context: 43 def test_detect_console_encoding_fallback_to_locale(monkeypatch, encoding): argument 45 with monkeypatch.context() as context: 62 def test_detect_console_encoding_fallback_to_default(monkeypatch, std, locale): argument 66 with monkeypatch.context() as context:
|
/dports/devel/py-loguru/loguru-0.5.3/tests/ |
H A D | test_filesink_compression.py | 70 def test_rename_existing_with_creation_time(monkeypatch, tmpdir): argument 291 def test_gzip_module_unavailable(ext, monkeypatch): argument 292 monkeypatch.setitem(sys.modules, "gzip", None) 298 def test_bz2_module_unavailable(ext, monkeypatch): argument 299 monkeypatch.setitem(sys.modules, "bz2", None) 305 def test_lzma_module_unavailable(ext, monkeypatch): argument 306 monkeypatch.setitem(sys.modules, "lzma", None) 312 def test_tarfile_module_unavailable(ext, monkeypatch): argument 313 monkeypatch.setitem(sys.modules, "tarfile", None) 319 def test_zipfile_module_unavailable(ext, monkeypatch): argument [all …]
|
/dports/devel/py-setuptools44/setuptools-44.1.1/setuptools/tests/ |
H A D | test_easy_install.py | 127 def test_all_site_dirs(self, monkeypatch): argument 179 self, sdist_unicode, tmpdir, monkeypatch): argument 469 monkeypatch.setenv(str('PIP_RETRIES'), str('0')) 470 monkeypatch.setenv(str('PIP_TIMEOUT'), str('0')) 642 monkeypatch.setenv(str('PIP_RETRIES'), str('0')) 643 monkeypatch.setenv(str('PIP_TIMEOUT'), str('0')) 664 monkeypatch.setenv(str('PIP_RETRIES'), str('0')) 665 monkeypatch.setenv(str('PIP_TIMEOUT'), str('0')) 706 monkeypatch.setenv(str('PIP_RETRIES'), str('0')) 707 monkeypatch.setenv(str('PIP_TIMEOUT'), str('0')) [all …]
|
/dports/math/py-keras-preprocessing/keras-preprocessing-1.1.0/tests/ |
H A D | test_api.py | 16 def test_get_keras_submodule(monkeypatch): argument 17 monkeypatch.setattr(keras_preprocessing, '_KERAS_BACKEND', 'backend') 19 monkeypatch.setattr(keras_preprocessing, '_KERAS_UTILS', 'utils') 23 def test_get_keras_submodule_errors(monkeypatch): argument 27 monkeypatch.setattr(keras_preprocessing, '_KERAS_BACKEND', None)
|
/dports/misc/py-progressbar2/progressbar2-3.55.0/tests/ |
H A D | test_progressbar.py | 16 def test_examples(monkeypatch): argument 26 def test_original_examples(example, monkeypatch): argument 27 monkeypatch.setattr(progressbar.ProgressBar, 29 monkeypatch.setattr(time, 'sleep', lambda t: None) 34 def test_examples_nullbar(monkeypatch, example): argument 36 monkeypatch.setattr(progressbar, 'ProgressBar', progressbar.NullBar)
|
/dports/sysutils/py-diffoscope/diffoscope-204/tests/comparators/ |
H A D | test_gif.py | 54 def test_compare_non_existing(monkeypatch, gif1): argument 55 assert_non_existing(monkeypatch, gif1, has_null_source=False) 59 def test_has_visuals(monkeypatch, gif3, gif4): argument 60 monkeypatch.setattr(Config(), "compute_visual_diffs", True) 69 def test_no_visuals_different_size(monkeypatch, gif1, gif2): argument 70 monkeypatch.setattr(Config(), "compute_visual_diffs", True)
|
/dports/lang/spidermonkey60/firefox-60.9.0/testing/web-platform/tests/tools/third_party/pytest/testing/ |
H A D | test_tmpdir.py | 129 def test_tmpdir_fallback_tox_env(testdir, monkeypatch): argument 133 monkeypatch.delenv('USER', raising=False) 134 monkeypatch.delenv('USERNAME', raising=False) 145 def break_getuser(monkeypatch): argument 146 monkeypatch.setattr('os.getuid', lambda: -1) 149 monkeypatch.delenv(envvar, raising=False) 180 def test_get_user(monkeypatch): argument 186 monkeypatch.delenv('USER', raising=False) 187 monkeypatch.delenv('USERNAME', raising=False)
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/web-platform/tests/tools/pytest/testing/ |
H A D | test_tmpdir.py | 124 def test_tmpdir_fallback_tox_env(testdir, monkeypatch): argument 128 monkeypatch.delenv('USER', raising=False) 129 monkeypatch.delenv('USERNAME', raising=False) 140 def break_getuser(monkeypatch): argument 141 monkeypatch.setattr('os.getuid', lambda: -1) 144 monkeypatch.delenv(envvar, raising=False) 175 def test_get_user(monkeypatch): argument 181 monkeypatch.delenv('USER', raising=False) 182 monkeypatch.delenv('USERNAME', raising=False)
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/pytest/testing/ |
H A D | test_tmpdir.py | 147 def test_tmpdir_fallback_tox_env(testdir, monkeypatch): argument 151 monkeypatch.delenv("USER", raising=False) 152 monkeypatch.delenv("USERNAME", raising=False) 165 def break_getuser(monkeypatch): argument 166 monkeypatch.setattr("os.getuid", lambda: -1) 169 monkeypatch.delenv(envvar, raising=False) 203 def test_get_user(monkeypatch): argument 210 monkeypatch.delenv("USER", raising=False) 211 monkeypatch.delenv("USERNAME", raising=False)
|
H A D | test_pytester.py | 174 self, testdir, monkeypatch argument 195 self, testdir, monkeypatch argument 264 self, testdir, monkeypatch argument 306 def test_add_removed(self, monkeypatch): argument 317 def test_restore_reloaded(self, monkeypatch): argument 327 def test_preserve_modules(self, monkeypatch): argument 344 def test_preserve_container(self, monkeypatch): argument 350 monkeypatch.setattr(sys, "modules", replacement) 364 def test_restore(self, monkeypatch, path_type): argument 369 monkeypatch.setattr(sys, path_type, sys_path) [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/testing/web-platform/tests/tools/third_party/pytest/testing/ |
H A D | test_tmpdir.py | 147 def test_tmpdir_fallback_tox_env(testdir, monkeypatch): argument 151 monkeypatch.delenv("USER", raising=False) 152 monkeypatch.delenv("USERNAME", raising=False) 165 def break_getuser(monkeypatch): argument 166 monkeypatch.setattr("os.getuid", lambda: -1) 169 monkeypatch.delenv(envvar, raising=False) 203 def test_get_user(monkeypatch): argument 210 monkeypatch.delenv("USER", raising=False) 211 monkeypatch.delenv("USERNAME", raising=False)
|
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/thirdparty/pybind11/tests/extra_python_package/ |
H A D | test_files.py | 107 def test_build_sdist(monkeypatch, tmpdir): argument 109 monkeypatch.chdir(MAIN_DIR) 171 def test_build_global_dist(monkeypatch, tmpdir): argument 173 monkeypatch.chdir(MAIN_DIR) 174 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1") 224 def tests_build_wheel(monkeypatch, tmpdir): argument 225 monkeypatch.chdir(MAIN_DIR) 253 def tests_build_global_wheel(monkeypatch, tmpdir): argument 254 monkeypatch.chdir(MAIN_DIR) 255 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1")
|
/dports/devel/pybind11/pybind11-2.8.1/tests/extra_python_package/ |
H A D | test_files.py | 107 def test_build_sdist(monkeypatch, tmpdir): argument 109 monkeypatch.chdir(MAIN_DIR) 171 def test_build_global_dist(monkeypatch, tmpdir): argument 173 monkeypatch.chdir(MAIN_DIR) 174 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1") 224 def tests_build_wheel(monkeypatch, tmpdir): argument 225 monkeypatch.chdir(MAIN_DIR) 253 def tests_build_global_wheel(monkeypatch, tmpdir): argument 254 monkeypatch.chdir(MAIN_DIR) 255 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1")
|
/dports/misc/py-onnx/onnx-1.10.2/third_party/pybind11/tests/extra_python_package/ |
H A D | test_files.py | 100 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")
|
/dports/www/mitmproxy/mitmproxy-7.0.4/test/release/ |
H A D | test_cibuild.py | 41 def test_buildenviron_pr(monkeypatch): argument 44 monkeypatch.setenv("GITHUB_REF", "refs/pull/42/merge") 45 monkeypatch.setenv("CI_BUILD_WHEEL", "1") 46 monkeypatch.setenv("GITHUB_EVENT_NAME", "pull_request") 223 def test_bool_from_env(monkeypatch): argument 224 monkeypatch.setenv("FOO", "1") 227 monkeypatch.setenv("FOO", "0") 230 monkeypatch.setenv("FOO", "false") 233 monkeypatch.setenv("FOO", "") 236 monkeypatch.delenv("FOO")
|
/dports/science/smoldyn/smoldyn-2.67/source/pybind11/tests/extra_python_package/ |
H A D | test_files.py | 107 def test_build_sdist(monkeypatch, tmpdir): argument 109 monkeypatch.chdir(MAIN_DIR) 171 def test_build_global_dist(monkeypatch, tmpdir): argument 173 monkeypatch.chdir(MAIN_DIR) 174 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1") 224 def tests_build_wheel(monkeypatch, tmpdir): argument 225 monkeypatch.chdir(MAIN_DIR) 253 def tests_build_global_wheel(monkeypatch, tmpdir): argument 254 monkeypatch.chdir(MAIN_DIR) 255 monkeypatch.setenv("PYBIND11_GLOBAL_SDIST", "1")
|
/dports/devel/py-tox/tox-3.12.1/tests/unit/ |
H A D | test_venv.py | 39 monkeypatch.setattr(tox.INFO, "IS_WIN", True) 43 monkeypatch.undo() 48 monkeypatch.undo() 324 monkeypatch.setenv("TEMP_PASS_VAR", "123") 325 monkeypatch.setenv("TEMP_NOPASS_VAR", "456") 623 monkeypatch.setenv("PATH", "xyz") 625 monkeypatch.setattr( 698 monkeypatch.setenv("PYTHONPATH", "") 722 monkeypatch.setenv("X123", "123") 723 monkeypatch.setenv("YY", "456") [all …]
|
/dports/devel/py-watchdog/watchdog-2.1.6/tests/ |
H A D | test_inotify_c.py | 69 def test_late_double_deletion(monkeypatch): argument 119 monkeypatch.setattr(os, "read", fakeread) 120 monkeypatch.setattr(os, "close", fakeclose) 121 monkeypatch.setattr(inotify_c, "inotify_init", inotify_init) 122 monkeypatch.setattr(inotify_c, "inotify_add_watch", inotify_add_watch) 123 monkeypatch.setattr(inotify_c, "inotify_rm_watch", inotify_rm_watch) 140 def test_raise_error(monkeypatch): argument 143 monkeypatch.setattr(ctypes, "get_errno", lambda: errno.ENOSPC) 149 monkeypatch.setattr(ctypes, "get_errno", lambda: errno.EMFILE) 155 monkeypatch.setattr(ctypes, "get_errno", lambda: errno.ENOENT) [all …]
|