/dports/sysutils/py-tmuxp/tmuxp-1.9.3/tests/ |
H A D | test_cli.py | 147 monkeypatch.setenv('HOME', str(homedir)) 416 monkeypatch.setenv('SHELL', 'sh') 524 monkeypatch, 613 monkeypatch, 692 monkeypatch, 757 def test_import(cli_args, monkeypatch): 771 def test_help(cli_args, monkeypatch): 916 monkeypatch.setenv('HOME', '/moo') 929 def test_get_teamocil_dir(monkeypatch): 932 monkeypatch.setenv('HOME', '/moo') [all …]
|
/dports/net-im/toot/toot-0.28.0/tests/ |
H A D | test_auth.py | 7 def test_register_app(monkeypatch): argument 17 monkeypatch.setattr(api, 'create_app', retval(app_data)) 18 monkeypatch.setattr(api, 'get_instance', retval({"title": "foo", "version": "1"})) 19 monkeypatch.setattr(config, 'save_app', assert_app) 25 def test_create_app_from_config(monkeypatch): argument 27 monkeypatch.setattr(config, 'load_app', retval("loaded app")) 32 def test_create_app_registered(monkeypatch): argument 34 monkeypatch.setattr(config, 'load_app', retval(None)) 35 monkeypatch.setattr(auth, 'register_app', retval("registered app")) 41 def test_create_user(monkeypatch): argument [all …]
|
/dports/devel/py-setuptools_scm/setuptools_scm-6.3.2/testing/ |
H A D | test_integration.py | 23 def test_pyproject_support(tmpdir, monkeypatch): argument 25 monkeypatch.delenv("SETUPTOOLS_SCM_DEBUG") 88 def test_pretend_version(monkeypatch, wd): argument 89 monkeypatch.setenv(PRETEND_KEY, "1.0.0") 98 monkeypatch.setenv( 105 def test_pretend_version_named(tmpdir, monkeypatch, wd): argument 112 def test_pretend_version_name_takes_precedence(tmpdir, monkeypatch, wd): argument 114 monkeypatch.setenv(PRETEND_KEY, "2.0.0") 118 def test_own_setup_fails_on_old_python(monkeypatch): argument 119 monkeypatch.setattr("sys.version_info", (3, 5)) [all …]
|
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/config/ |
H A D | test_qtargs.py | 43 def version_patcher(monkeypatch): argument 55 def reduce_args(config_stub, version_patcher, monkeypatch): argument 60 monkeypatch.setattr(qtargs.utils, 'is_mac', False) 62 monkeypatch.setattr(qtargs.utils, 'is_linux', False) 127 def ensure_webengine(self, monkeypatch): argument 500 monkeypatch.setattr( 542 def test_env_vars(self, monkeypatch, config_stub, argument 548 monkeypatch.delenv(envvar) 582 monkeypatch.setenv(var, '0') 585 monkeypatch.setenv(var, val) [all …]
|
/dports/x11-wm/qtile/qtile-0.18.1/test/widgets/ |
H A D | test_generic_poll_text.py | 89 def test_gen_poll_url_text(monkeypatch): argument 91 monkeypatch.setattr(generic_poll_text, "Request", MockRequest) 92 monkeypatch.setattr(generic_poll_text, "urlopen", Mockurlopen) 97 def test_gen_poll_url_json(monkeypatch): argument 99 monkeypatch.setattr(generic_poll_text, "Request", MockRequest) 100 monkeypatch.setattr(generic_poll_text, "urlopen", Mockurlopen) 105 def test_gen_poll_url_xml_no_xmltodict(monkeypatch): argument 107 monkeypatch.setattr(generic_poll_text, "Request", MockRequest) 108 monkeypatch.setattr(generic_poll_text, "urlopen", Mockurlopen) 114 def test_gen_poll_url_xml_has_xmltodict(monkeypatch): argument [all …]
|
H A D | test_clock.py | 54 def patched_clock(monkeypatch): argument 56 monkeypatch.setitem(sys.modules, "pytz", None) 57 monkeypatch.setitem(sys.modules, "dateutil", None) 58 monkeypatch.setitem(sys.modules, "dateutil.tz", None) 68 def test_clock(fake_qtile, monkeypatch, fake_window): argument 95 monkeypatch.delitem(sys.modules, "pytz") 96 monkeypatch.delitem(sys.modules, "dateutil") 170 monkeypatch.setitem(sys.modules, "pytz", True) 206 monkeypatch.delitem(sys.modules, "pytz") 209 monkeypatch.setitem(sys.modules, "dateutil", True) [all …]
|
/dports/devel/py-structlog/structlog-18.2.0/tests/ |
H A D | test_frames.py | 23 def test_ignores_structlog_by_default(self, monkeypatch): argument 29 monkeypatch.setattr(structlog._frames.sys, "_getframe", lambda: f2) 34 def test_ignoring_of_additional_frame_names_works(self, monkeypatch): argument 46 def test_tolerates_missing_name(self, monkeypatch): argument 56 def test_tolerates_name_explicitly_None_oneframe(self, monkeypatch): argument 66 def test_tolerates_name_explicitly_None_manyframe(self, monkeypatch): argument 78 def test_tolerates_f_back_is_None(self, monkeypatch): argument 115 def test_no_trailing_nl(self, exc_info, monkeypatch): argument 122 monkeypatch.setattr( 144 def test_no_trailing_nl(self, monkeypatch): argument [all …]
|
/dports/misc/py-progressbar2/progressbar2-3.55.0/tests/ |
H A D | test_utils.py | 20 def test_env_flag(value, expected, monkeypatch): argument 22 monkeypatch.setenv('TEST_ENV', value) 26 monkeypatch.setenv('TEST_ENV', value.upper()) 29 monkeypatch.undo() 32 def test_is_terminal(monkeypatch): argument 36 monkeypatch.delenv('JPY_PARENT_PID', raising=False) 42 monkeypatch.setenv('JPY_PARENT_PID', '123') 44 monkeypatch.delenv('JPY_PARENT_PID') 49 monkeypatch.setenv('PROGRESSBAR_IS_TERMINAL', 'true') 51 monkeypatch.setenv('PROGRESSBAR_IS_TERMINAL', 'false') [all …]
|
/dports/devel/py-twine/twine-3.7.0/tests/ |
H A D | test_auth.py | 22 monkeypatch.setattr(auth, "keyring", MockKeyring) 34 monkeypatch.setattr(auth, "keyring", MockKeyring) 63 monkeypatch, config, caplog argument 81 monkeypatch.setattr(auth, "keyring", MockKeyring) 95 def keyring_missing_get_credentials(monkeypatch): argument 97 monkeypatch.delattr(auth.keyring, "get_credential") 101 def entered_username(monkeypatch): argument 126 def keyring_no_backends(monkeypatch): argument 134 monkeypatch.setattr(auth, "keyring", FailKeyring()) 138 def keyring_no_backends_get_credential(monkeypatch): argument [all …]
|
/dports/devel/py-pip/pip-20.3.4/tests/unit/ |
H A D | test_network_auth.py | 102 def test_keyring_get_password(monkeypatch, url, expect): argument 112 def test_keyring_get_password_after_prompt(monkeypatch): argument 126 def test_keyring_get_password_after_prompt_when_none(monkeypatch): argument 140 monkeypatch.setattr( 146 def test_keyring_get_password_username_in_index(monkeypatch): argument 165 def test_keyring_set_password(monkeypatch, response_status, creds, argument 170 monkeypatch.setattr(auth, '_get_url_and_credentials', 183 monkeypatch.setattr(auth, '_should_save_password_to_keyring', 236 def test_keyring_get_credential(monkeypatch, url, expect): argument 237 monkeypatch.setattr( [all …]
|
H A D | test_compat.py | 24 def test_get_path_uid_without_NOFOLLOW(monkeypatch): argument 25 monkeypatch.delattr("os.O_NOFOLLOW") 45 def test_get_path_uid_symlink_without_NOFOLLOW(tmpdir, monkeypatch): argument 46 monkeypatch.delattr("os.O_NOFOLLOW") 90 def test_str_to_display__decode_error(monkeypatch, caplog): argument 113 def test_console_to_str(monkeypatch): argument 124 def test_console_to_str_warning(monkeypatch): argument 132 monkeypatch.setattr(pip_compat.logger, 'warning', check_warning) 143 def test_expanduser(home, path, expanded, monkeypatch): argument 144 monkeypatch.setenv("HOME", home) [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/third_party/httplib2/tests/ |
H A D | test_proxy.py | 39 def test_from_env(monkeypatch): argument 47 def test_from_env_https(monkeypatch): argument 62 def test_applies_to(monkeypatch): argument 76 def test_noproxy_trailing_comma(monkeypatch): argument 85 def test_noproxy_star(monkeypatch): argument 87 monkeypatch.setenv("NO_PROXY", "*") 178 def test_functional_noproxy_star_http(monkeypatch): argument 187 monkeypatch.setenv("http_proxy", uri) 188 monkeypatch.setenv("no_proxy", "*") 203 monkeypatch.setenv("https_proxy", uri) [all …]
|
/dports/www/py-httplib2/httplib2-0.20.2/tests/ |
H A D | test_proxy.py | 42 def test_from_env(monkeypatch): argument 50 def test_from_env_https(monkeypatch): argument 65 def test_applies_to(monkeypatch): argument 79 def test_noproxy_trailing_comma(monkeypatch): argument 88 def test_noproxy_star(monkeypatch): argument 90 monkeypatch.setenv("NO_PROXY", "*") 181 def test_functional_noproxy_star_http(monkeypatch): argument 190 monkeypatch.setenv("http_proxy", uri) 191 monkeypatch.setenv("no_proxy", "*") 206 monkeypatch.setenv("https_proxy", uri) [all …]
|
/dports/www/py-httpie/httpie-2.6.0/tests/ |
H A D | test_config.py | 4 from _pytest.monkeypatch import MonkeyPatch 63 monkeypatch.delenv(ENV_HTTPIE_CONFIG_DIR, raising=False) 64 monkeypatch.setenv('HOME', str(home_dir)) 74 monkeypatch.delenv(ENV_HTTPIE_CONFIG_DIR, raising=False) 75 monkeypatch.delenv(ENV_XDG_CONFIG_HOME, raising=False) 76 monkeypatch.setenv('HOME', str(home_dir)) 86 def test_legacy_config_dir(monkeypatch: MonkeyPatch, tmp_path: Path): 88 monkeypatch.delenv(ENV_HTTPIE_CONFIG_DIR, raising=False) 89 monkeypatch.setenv('HOME', str(home_dir)) 102 def test_windows_config_dir(monkeypatch: MonkeyPatch): [all …]
|
/dports/www/py-hyper/hyper-18b629b/test/ |
H A D | test_socket.py | 26 monkeypatch.setattr( 36 monkeypatch.setattr( 47 monkeypatch.setattr( 58 monkeypatch.setattr( 72 monkeypatch.setattr( 86 monkeypatch.setattr( 103 monkeypatch.setattr( 120 monkeypatch.setattr( 131 monkeypatch.setattr( 149 monkeypatch.setattr( [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/crypto/tests/unit/plugins/modules/ |
H A D | test_luks_device.py | 24 def test_generate_luks_name(monkeypatch): argument 32 def test_get_container_name_by_device(monkeypatch): argument 40 def test_get_container_device_by_name(monkeypatch): argument 48 def test_run_luks_remove(monkeypatch): argument 55 monkeypatch.setattr(luks_device.CryptHandler, 58 monkeypatch.setattr(luks_device.Handler, 163 expected, monkeypatch): argument 211 expected, monkeypatch): argument 219 monkeypatch.setattr(luks_device.CryptHandler, 222 monkeypatch.setattr(luks_device.CryptHandler, [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/amazon/aws/tests/unit/module_utils/core/ansible_aws_module/ |
H A D | test_fail_json_aws.py | 53 monkeypatch.setattr(botocore, "__version__", "1.2.3") 54 monkeypatch.setattr(boto3, "__version__", "1.2.4") 81 monkeypatch.setattr(boto3, "__version__", "1.2.4") 108 monkeypatch.setattr(boto3, "__version__", "1.2.4") 135 monkeypatch.setattr(boto3, "__version__", "1.2.4") 163 monkeypatch.setattr(boto3, "__version__", "1.2.4") 191 monkeypatch.setattr(boto3, "__version__", "1.2.4") 218 monkeypatch.setattr(boto3, "__version__", "1.2.4") 246 monkeypatch.setattr(boto3, "__version__", "1.2.4") 273 monkeypatch.setattr(boto3, "__version__", "1.2.4") [all …]
|
/dports/www/py-flask-wtf/Flask-WTF-0.15.1/tests/ |
H A D | test_recaptcha.py | 35 def test_config(app, monkeypatch): argument 37 monkeypatch.setattr(app, 'testing', True) 40 monkeypatch.undo() 44 monkeypatch.undo() 96 def test_send_invalid_request(monkeypatch): argument 100 monkeypatch.setattr(http, 'urlopen', mock_urlopen) 108 def test_response_from_json(app, monkeypatch): argument 112 monkeypatch.setattr(http, 'urlopen', mock_urlopen) 123 def test_request_fail(monkeypatch): argument 133 def test_request_success(monkeypatch): argument [all …]
|
/dports/www/qutebrowser/qutebrowser-2.4.0/tests/unit/browser/webengine/ |
H A D | test_spell.py | 41 def test_local_filename_dictionary_does_not_exist(monkeypatch): argument 43 monkeypatch.setattr( 48 def test_local_filename_dictionary_not_installed(tmpdir, monkeypatch): argument 50 monkeypatch.setattr(spell, 'dictionary_dir', lambda: str(tmpdir)) 56 monkeypatch.setattr(spell, 'dictionary_dir', lambda: str(tmpdir)) 62 def test_local_filename_dictionary_installed(tmpdir, monkeypatch): argument 64 monkeypatch.setattr(spell, 'dictionary_dir', lambda: str(tmpdir)) 71 def test_local_filename_installed_malformed(tmpdir, monkeypatch, caplog): argument 75 monkeypatch.setattr(spell, 'dictionary_dir', lambda: str(tmpdir)) 87 def remove_envvar(self, monkeypatch): argument [all …]
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/postgresql/tests/unit/plugins/module_utils/ |
H A D | test_postgres.py | 156 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 166 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 167 monkeypatch.setattr(pg, 'psycopg2', m_psycopg2) 177 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 181 monkeypatch.setattr(pg, 'psycopg2', psycopg2) 221 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 222 monkeypatch.setattr(pg, 'psycopg2', m_psycopg2) 236 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 254 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 269 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) [all …]
|
/dports/sysutils/ansible2/ansible-2.9.27/test/units/module_utils/postgresql/ |
H A D | test_postgres.py | 153 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 163 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 164 monkeypatch.setattr(pg, 'psycopg2', m_psycopg2) 174 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 178 monkeypatch.setattr(pg, 'psycopg2', psycopg2) 218 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 219 monkeypatch.setattr(pg, 'psycopg2', m_psycopg2) 233 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 251 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) 266 monkeypatch.setattr(pg, 'HAS_PSYCOPG2', True) [all …]
|
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/doc/en/ |
H A D | monkeypatch.rst | 5 .. currentmodule:: _pytest.monkeypatch 23 monkeypatch.delenv(name, raising=True) 24 monkeypatch.syspath_prepend(path) 25 monkeypatch.chdir(path) 87 def test_getssh(monkeypatch): 144 def test_get_json(monkeypatch): 189 def mock_response(monkeypatch): 221 def no_requests(monkeypatch): 311 def mock_env_user(monkeypatch): 356 def test_connection(monkeypatch): [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/doc/en/ |
H A D | monkeypatch.rst | 5 .. currentmodule:: _pytest.monkeypatch 23 monkeypatch.delenv(name, raising=True) 24 monkeypatch.syspath_prepend(path) 25 monkeypatch.chdir(path) 87 def test_getssh(monkeypatch): 144 def test_get_json(monkeypatch): 189 def mock_response(monkeypatch): 221 def no_requests(monkeypatch): 311 def mock_env_user(monkeypatch): 356 def test_connection(monkeypatch): [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/doc/en/ |
H A D | monkeypatch.rst | 5 .. currentmodule:: _pytest.monkeypatch 23 monkeypatch.delenv(name, raising=True) 24 monkeypatch.syspath_prepend(path) 25 monkeypatch.chdir(path) 87 def test_getssh(monkeypatch): 144 def test_get_json(monkeypatch): 189 def mock_response(monkeypatch): 221 def no_requests(monkeypatch): 311 def mock_env_user(monkeypatch): 356 def test_connection(monkeypatch): [all …]
|
/dports/archivers/py-borgbackup/borgbackup-1.1.17/src/borg/testsuite/ |
H A D | key.py | 69 def keys_dir(self, request, monkeypatch, tmpdir): argument 82 def key(self, request, monkeypatch): argument 83 monkeypatch.setenv('BORG_PASSPHRASE', 'test') 115 def test_keyfile(self, monkeypatch, keys_dir): argument 116 monkeypatch.setenv('BORG_PASSPHRASE', 'test') 135 monkeypatch.setenv('BORG_PASSPHRASE', 'test') 160 def test_keyfile2(self, monkeypatch, keys_dir): argument 183 def test_passphrase(self, keys_dir, monkeypatch): argument 304 monkeypatch.delenv('BORG_PASSPHRASE', False) 312 monkeypatch.delenv('BORG_PASSPHRASE', False) [all …]
|