/dports/lang/spidermonkey78/firefox-78.9.0/testing/web-platform/tests/tools/third_party/pytest/testing/ |
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/devel/py-flit/flit-3.5.1/tests/ |
H A D | test_validate.py | 116 def test_read_classifiers_cached(monkeypatch, tmp_path): argument 124 monkeypatch.setattr(fv, "get_cache_dir", mock_get_cache_dir) 132 def test_download_and_cache_classifiers(monkeypatch, tmp_path): argument 141 monkeypatch.setattr(fv, "get_cache_dir", mock_get_cache_dir) 148 def test_validate_classifiers_private(monkeypatch): argument 160 monkeypatch.setattr(fv, "_read_classifiers_cached", lambda: set()) 170 def test_download_and_cache_classifiers_with_unacessible_dir(monkeypatch, error): argument 182 monkeypatch.setattr(fv, "get_cache_dir", MockCacheDir)
|
/dports/devel/py-pyinstaller/PyInstaller-3.5/tests/unit/ |
H A D | test_hookutils.py | 106 def mod_list(monkeypatch): argument 109 monkeypatch.setattr('PyInstaller.config.CONF', {'pathex': [TEST_MOD_PATH]}) 110 monkeypatch.syspath_prepend(TEST_MOD_PATH) 158 def test_collect_submod_egg(self, tmpdir, monkeypatch): argument 162 monkeypatch.chdir(dest_path) 177 monkeypatch.setattr('PyInstaller.config.CONF', {'pathex': [pth]}) 178 monkeypatch.syspath_prepend(pth) 215 def data_lists(monkeypatch, request): argument 222 monkeypatch.syspath_prepend(TEST_MOD_PATH)
|
/dports/devel/py-cookiecutter/cookiecutter-1.7.3/tests/ |
H A D | test_prompt.py | 15 def patch_readline_on_win(monkeypatch): argument 18 monkeypatch.setattr('sys.stdin.readline', lambda: '\n') 84 def test_prompt_for_config(self, monkeypatch, context): argument 86 monkeypatch.setattr( 93 def test_prompt_for_config_dict(self, monkeypatch): argument 95 monkeypatch.setattr( 166 def test_prompt_for_templated_config(self, monkeypatch): argument 168 monkeypatch.setattr( 190 def test_dont_prompt_for_private_context_var(self, monkeypatch): argument 192 monkeypatch.setattr(
|
/dports/www/firefox-esr/firefox-91.8.0/testing/mozbase/mozfile/tests/ |
H A D | test_which.py | 17 def test_which(monkeypatch): argument 19 monkeypatch.chdir(cwd) 27 monkeypatch.setenv("PATH", bindir) 28 monkeypatch.setattr(winreg, "QueryValue", (lambda k, sk: None)) 51 monkeypatch.setattr(winreg, "QueryValue", mock_registry) 57 monkeypatch.setenv("PATH", bindir)
|
/dports/www/firefox/firefox-99.0/testing/mozbase/mozfile/tests/ |
H A D | test_which.py | 17 def test_which(monkeypatch): argument 19 monkeypatch.chdir(cwd) 27 monkeypatch.setenv("PATH", bindir) 28 monkeypatch.setattr(winreg, "QueryValue", (lambda k, sk: None)) 51 monkeypatch.setattr(winreg, "QueryValue", mock_registry) 57 monkeypatch.setenv("PATH", bindir)
|
/dports/mail/thunderbird/thunderbird-91.8.0/testing/mozbase/mozfile/tests/ |
H A D | test_which.py | 17 def test_which(monkeypatch): argument 19 monkeypatch.chdir(cwd) 27 monkeypatch.setenv("PATH", bindir) 28 monkeypatch.setattr(winreg, "QueryValue", (lambda k, sk: None)) 51 monkeypatch.setattr(winreg, "QueryValue", mock_registry) 57 monkeypatch.setenv("PATH", bindir)
|
/dports/lang/spidermonkey78/firefox-78.9.0/testing/mozbase/mozfile/tests/ |
H A D | test_which.py | 17 def test_which(monkeypatch): argument 19 monkeypatch.chdir(cwd) 27 monkeypatch.setenv("PATH", bindir) 28 monkeypatch.setattr(winreg, 'QueryValue', (lambda k, sk: None)) 47 monkeypatch.setattr(winreg, 'QueryValue', mock_registry) 53 monkeypatch.setenv("PATH", bindir)
|
/dports/devel/py-tox/tox-3.12.1/tests/unit/session/ |
H A D | test_session.py | 134 def test_venv_filter_empty_all_active(venv_filter_project, monkeypatch): argument 135 monkeypatch.delenv("TOX_SKIP_ENV", raising=False) 154 def test_venv_filter_match_all_none_active(venv_filter_project, monkeypatch): argument 155 monkeypatch.setenv("TOX_SKIP_ENV", ".*") 166 def test_venv_filter_match_some_some_active(venv_filter_project, monkeypatch): argument 167 monkeypatch.setenv("TOX_SKIP_ENV", "py27.*") 180 def popen_env_test(initproj, cmd, monkeypatch): argument 220 monkeypatch.setattr(res.session, "popen", popen) 248 monkeypatch.setattr(Action, "__enter__", enter) 256 monkeypatch.setattr(Action, "__exit__", exit_func) [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/web-platform/tests/tools/pytest/testing/ |
H A D | test_cache.py | 134 def test_lastfailed_usecase(self, testdir, monkeypatch): argument 135 monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", 1) 202 monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", 1) 236 def test_lastfailed_usecase_splice(self, testdir, monkeypatch): argument 237 monkeypatch.setenv("PYTHONDONTWRITEBYTECODE", 1) 287 def test_lastfailed_collectfailure(self, testdir, monkeypatch): argument 299 monkeypatch.setenv('FAILIMPORT', fail_import) 300 monkeypatch.setenv('FAILTEST', fail_run) 317 def test_lastfailed_failure_subset(self, testdir, monkeypatch): argument 341 monkeypatch.setenv('FAILIMPORT', fail_import) [all …]
|
/dports/devel/py-dask/dask-2021.11.2/dask/tests/ |
H A D | test_system.py | 21 def test_cpu_count_cgroups(dirname, monkeypatch): argument 26 monkeypatch.setattr(os, "cpu_count", mycpu_count) 33 monkeypatch.setattr(psutil, "Process", MyProcess) 47 monkeypatch.setattr(builtins, "open", myopen) 48 monkeypatch.setattr(sys, "platform", "linux")
|
/dports/archivers/py-borgbackup/borgbackup-1.1.17/src/borg/testsuite/ |
H A D | benchmark.py | 17 def repo_url(request, tmpdir, monkeypatch): argument 18 monkeypatch.setenv('BORG_PASSPHRASE', '123456') 19 monkeypatch.setenv('BORG_CHECK_I_KNOW_WHAT_I_AM_DOING', 'YES') 20 monkeypatch.setenv('BORG_DELETE_I_KNOW_WHAT_I_AM_DOING', 'YES') 21 monkeypatch.setenv('BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK', 'yes') 22 monkeypatch.setenv('BORG_KEYS_DIR', str(tmpdir.join('keys'))) 23 monkeypatch.setenv('BORG_CACHE_DIR', str(tmpdir.join('cache')))
|
/dports/devel/py-apscheduler/APScheduler-3.8.1/tests/ |
H A D | conftest.py | 43 def timezone(monkeypatch): argument 45 monkeypatch.setattr('apscheduler.schedulers.base.get_localzone', 51 def freeze_time(monkeypatch, timezone): argument 74 monkeypatch.setattr('apscheduler.schedulers.base.datetime', fake_datetime) 75 monkeypatch.setattr('apscheduler.executors.base.datetime', fake_datetime) 76 monkeypatch.setattr('apscheduler.triggers.interval.datetime', fake_datetime) 77 monkeypatch.setattr('apscheduler.triggers.date.datetime', fake_datetime)
|
/dports/dns/py-dns-lexicon/dns-lexicon-3.8.3/lexicon/tests/ |
H A D | test_client.py | 33 def test_client_legacy_init(monkeypatch): argument 34 monkeypatch.setenv("LEXICON_FAKEPROVIDER_AUTH_KEY", "MY_KEY") 142 def test_client_parse_env_with_no_keys_should_do_nothing(monkeypatch): argument 144 monkeypatch.delenv("LEXICON_FAKEPROVIDER_TOKEN") 146 monkeypatch.delenv("LEXICON_FAKEPROVIDER_USERNAME") 163 def test_client_parse_env_with_auth_keys(monkeypatch): argument 164 monkeypatch.setenv("LEXICON_FAKEPROVIDER_TOKEN", "test-token") 165 monkeypatch.setenv("LEXICON_FAKEPROVIDER_USERNAME", "test-username@example.com")
|
/dports/www/onionshare/onionshare-2.2/tests/ |
H A D | test_onionshare_settings.py | 30 def os_path_expanduser(monkeypatch): argument 31 monkeypatch.setattr("os.path.expanduser", lambda path: path) 102 def test_save(self, monkeypatch, settings_obj): argument 103 monkeypatch.setattr(strings, "_", lambda _: "") 156 def test_filename_darwin(self, monkeypatch, os_path_expanduser, platform_darwin): argument 162 def test_filename_linux(self, monkeypatch, os_path_expanduser, platform_linux): argument 166 def test_filename_windows(self, monkeypatch, platform_windows): argument 167 monkeypatch.setenv("APPDATA", "C:")
|
/dports/devel/py-case/case-1.5.3/case/ |
H A D | pytest.py | 57 def __init__(self, monkeypatch, request): argument 58 self.monkeypatch = monkeypatch 62 return getattr(self.monkeypatch, name) 67 self.monkeypatch.setattr(path, value) 91 self.monkeypatch.setitem(dic, name, value) 115 def patching(monkeypatch, request): argument 131 return _patching(monkeypatch, request)
|
/dports/security/py-google-auth/google-auth-2.3.3/tests/ |
H A D | test__default.py | 443 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename") 457 monkeypatch.setenv(environment_vars.CREDENTIALS, "filename") 559 def app_identity(monkeypatch): argument 710 def test_default_explict_project_id(unused_get, monkeypatch): argument 831 get_project_id, monkeypatch, tmpdir argument 848 get_project_id, monkeypatch, tmpdir argument 867 get_project_id, monkeypatch, tmpdir argument 886 get_project_id, monkeypatch, tmpdir argument 905 get_project_id, monkeypatch, tmpdir argument 924 get_project_id, monkeypatch, tmpdir argument [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/galaxy/ |
H A D | test_collection.py | 56 def collection_artifact(monkeypatch, tmp_path_factory): argument 59 monkeypatch.setattr(collection, 'open_url', mock_open) 63 monkeypatch.setattr(uuid, 'uuid4', mock_uuid) 244 def test_warning_extra_keys(galaxy_yml, monkeypatch): argument 246 monkeypatch.setattr(Display, 'warning', display_mock) 302 monkeypatch.setattr(Display, 'vvv', mock_display) 331 monkeypatch.setattr(Display, 'vvv', mock_display) 363 monkeypatch.setattr(Display, 'warning', mock_display) 442 monkeypatch.setattr(Display, 'display', mock_display) 465 monkeypatch.setattr(Display, 'display', mock_display) [all …]
|
/dports/devel/py-pip/pip-20.3.4/tests/ |
H A D | conftest.py | 173 def isolate(tmpdir, monkeypatch): argument 196 monkeypatch.setenv('USERPROFILE', home_dir) 197 monkeypatch.setenv('HOMEDRIVE', home_drive) 198 monkeypatch.setenv('HOMEPATH', home_path) 204 monkeypatch.setenv(env_var, path) 210 monkeypatch.setenv("HOME", home_dir) 212 monkeypatch.setenv("XDG_DATA_HOME", os.path.join( 215 monkeypatch.setenv("XDG_CONFIG_HOME", os.path.join( 232 monkeypatch.setenv("GIT_CONFIG_NOSYSTEM", "1") 233 monkeypatch.setenv("GIT_AUTHOR_NAME", "pip") [all …]
|
/dports/sysutils/py-diffoscope/diffoscope-204/tests/comparators/ |
H A D | test_macho.py | 38 def init_tests(request, monkeypatch): argument 41 monkeypatch.setattr(Config(), "exclude_commands", ["^radare2.*"]) 60 def test_otool_obj_compare_non_existing(monkeypatch, obj1): argument 61 monkeypatch.setattr(Config(), "new_file", True) 88 def test_llvm_obj_compare_non_existing(monkeypatch, obj1): argument 89 monkeypatch.setattr(Config(), "new_file", True)
|
H A D | test_deb.py | 72 def test_identification_of_md5sums_in_deb(deb1, deb2, monkeypatch): argument 83 monkeypatch.setattr(Md5sumsFile, "recognizes", probe) 103 def test_identification_of_data_tar(deb1, deb2, monkeypatch): argument 114 monkeypatch.setattr(DebDataTarFile, "recognizes", probe) 119 def test_skip_comparison_of_known_identical_files(deb1, deb2, monkeypatch): argument 127 monkeypatch.setattr( 134 def test_compare_non_existing(monkeypatch, deb1): argument 135 monkeypatch.setattr(Config(), "new_file", True)
|
/dports/www/py-requests/requests-2.25.1/tests/ |
H A D | test_utils.py | 158 def no_proxy(self, request, monkeypatch): argument 628 def test_should_bypass_proxies(url, expected, monkeypatch): argument 696 url, expected, monkeypatch): argument 720 monkeypatch): argument 750 monkeypatch.setenv('http_proxy', '') 751 monkeypatch.setenv('https_proxy', '') 752 monkeypatch.setenv('ftp_proxy', '') 753 monkeypatch.setenv('no_proxy', '') 754 monkeypatch.setenv('NO_PROXY', '') 755 monkeypatch.setattr(winreg, 'OpenKey', OpenKey) [all …]
|
/dports/print/py-ttfautohint-py/ttfautohint-py-0.4.3.post1/tests/ |
H A D | test_options.py | 420 def test_stdin_input_type(monkeypatch, tmpdir, isatty): argument 422 monkeypatch.setattr(sys, "stdin", MockFile(tmp, isatty)) 441 def test_stdout_output_type(monkeypatch, tmpdir, isatty): argument 443 monkeypatch.setattr(sys, "stdout", MockFile(tmp, isatty)) 475 monkeypatch.undo() 483 def test_no_in_file(self, monkeypatch, capsys): argument 495 def test_no_out_file(self, monkeypatch, capsys): argument 507 def test_source_date_epoch(self, monkeypatch): argument 511 monkeypatch.setattr(os, "environ", env) 517 def test_source_date_epoch_invalid(self, monkeypatch): argument [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/modules/cloud/linode/ |
H A D | conftest.py | 5 def api_key(monkeypatch): argument 6 monkeypatch.setenv('LINODE_API_KEY', 'foobar') 10 def auth(monkeypatch): argument 13 monkeypatch.setattr('linode.api.Api.test_echo', patched_test_echo)
|
/dports/sysutils/py-diffoscope/diffoscope-204/tests/ |
H A D | test_difference.py | 42 def test_too_much_input_for_diff(monkeypatch): argument 43 monkeypatch.setattr(Config(), "max_diff_input_lines", 20) 53 def test_too_long_diff_block_lines(monkeypatch): argument 54 monkeypatch.setattr(Config(), "enforce_constraints", False) 55 monkeypatch.setattr(Config(), "max_diff_block_lines_saved", 10) 138 def test_adjust_diff_context(monkeypatch): argument 139 monkeypatch.setattr(Config(), "diff_context", 2)
|