/dports/archivers/py-borgbackup/borgbackup-1.1.17/ |
H A D | CHANGES.rst | 1951 - use monkeypatch to set env vars, but only on pytest based tests.
|
H A D | conftest.py | 30 def clean_env(tmpdir_factory, monkeypatch): argument 32 monkeypatch.setenv('XDG_CONFIG_HOME', str(tmpdir_factory.mktemp('xdg-config-home'))) 33 monkeypatch.setenv('XDG_CACHE_HOME', str(tmpdir_factory.mktemp('xdg-cache-home'))) 37 monkeypatch.delenv(key, raising=False)
|
/dports/archivers/py-borgbackup/borgbackup-1.1.17/docs/ |
H A D | changes.rst | 1951 - use monkeypatch to set env vars, but only on pytest based tests.
|
/dports/archivers/py-borgbackup/borgbackup-1.1.17/src/borg/testsuite/ |
H A D | archive.py | 33 def tests_stats_progress(stats, monkeypatch, columns=80): argument 34 monkeypatch.setenv('COLUMNS', str(columns))
|
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')))
|
H A D | cache.py | 220 def key(self, repository, monkeypatch): argument 221 monkeypatch.setenv('BORG_PASSPHRASE', 'test')
|
H A D | helpers.py | 236 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 …]
|
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 …]
|
H A D | nonces.py | 70 def test_empty_cache_and_old_server(self, monkeypatch): argument 71 monkeypatch.setattr(nonces, 'NONCE_SPACE_RESERVATION', 0x20) 81 def test_empty_cache(self, monkeypatch): argument 82 monkeypatch.setattr(nonces, 'NONCE_SPACE_RESERVATION', 0x20) 93 def test_empty_nonce(self, monkeypatch): argument 130 def test_sync_nonce(self, monkeypatch): argument 145 def test_server_just_upgraded(self, monkeypatch): argument 160 def test_transaction_abort_no_cache(self, monkeypatch): argument 174 def test_transaction_abort_old_server(self, monkeypatch): argument 187 def test_transaction_abort_on_other_client(self, monkeypatch): argument [all …]
|
H A D | remote.py | 28 def test_write_unlimited(self, monkeypatch): argument 29 monkeypatch.setattr(os, "write", self.check_write) 35 def test_write(self, monkeypatch): argument 36 monkeypatch.setattr(os, "write", self.check_write) 37 monkeypatch.setattr(time, "monotonic", lambda: now) 38 monkeypatch.setattr(time, "sleep", lambda x: None) 160 def key(self, repository, monkeypatch): argument 161 monkeypatch.setenv('BORG_PASSPHRASE', 'test')
|
H A D | upgrader.py | 103 def attic_key_file(tmpdir, monkeypatch): argument 115 monkeypatch.setenv('ATTIC_KEYS_DIR', keys_dir) 120 monkeypatch.setenv('BORG_KEYS_DIR', keys_dir) 121 monkeypatch.setenv('ATTIC_PASSPHRASE', 'test')
|
/dports/archivers/py-libarchive-c/libarchive-c-2.9/tests/ |
H A D | test_errors.py | 19 def test_check_int_logs_warnings(monkeypatch): argument 21 monkeypatch.setattr(ffi.logger, 'warning', lambda *_: calls.append(1)) 33 def test_error_string_decoding(monkeypatch): argument 34 monkeypatch.setattr(ffi, 'error_string', lambda *_: None) 37 monkeypatch.setattr(ffi, 'error_string', lambda *_: b'a') 40 monkeypatch.setattr(ffi, 'error_string', lambda *_: '\xe9'.encode('utf8'))
|
/dports/astro/py-astral/astral-2.2/ |
H A D | MANIFEST.in | 3 include monkeypatch.py
|
H A D | setup.py | 7 import monkeypatch # noqa: F401
|
/dports/astro/py-astropy/astropy-5.0/astropy/config/tests/ |
H A D | test_configs.py | 38 def test_set_temp_config(tmpdir, monkeypatch): argument 42 monkeypatch.setattr(paths.set_temp_config, '_temp_path', None) 68 def test_set_temp_cache(tmpdir, monkeypatch): argument 69 monkeypatch.setattr(paths.set_temp_cache, '_temp_path', None) 345 def test_config_noastropy_fallback(monkeypatch): argument 352 monkeypatch.setenv('XDG_CONFIG_HOME', 'foo') 353 monkeypatch.delenv('XDG_CONFIG_HOME') 354 monkeypatch.setattr(paths.set_temp_config, '_temp_path', None) 360 monkeypatch.setattr(paths, '_find_or_create_root_dir', osraiser) 363 monkeypatch.setattr(configuration, '_cfgobjs', {})
|
/dports/astro/py-astropy/astropy-5.0/astropy/coordinates/tests/ |
H A D | test_intermediate_transformations.py | 652 def test_earth_orientation_table(monkeypatch): argument 657 monkeypatch.setattr('astropy.utils.iers.conf.auto_download', True)
|
H A D | test_matching.py | 117 def test_python_kdtree(monkeypatch): argument 123 monkeypatch.delattr("scipy.spatial.cKDTree")
|
/dports/astro/py-astropy/astropy-5.0/astropy/cosmology/tests/ |
H A D | test_funcs.py | 131 def test_z_at_value_verbose(monkeypatch): argument 136 monkeypatch.setattr(sys, 'stdout', mock_stdout)
|
/dports/astro/py-astropy/astropy-5.0/astropy/io/fits/tests/ |
H A D | test_core.py | 1206 def test_writeto_full_disk(self, monkeypatch): argument 1219 monkeypatch.setattr(fits.hdu.base._BaseHDU, "_writeto", _writeto) 1220 monkeypatch.setattr(data, "get_free_space_in_dir", get_free_space_in_dir) 1233 def test_flush_full_disk(self, monkeypatch): argument 1250 monkeypatch.setattr(fits.hdu.base._BaseHDU, "_writedata", _writedata) 1251 monkeypatch.setattr(data, "get_free_space_in_dir",
|
/dports/astro/py-astropy/astropy-5.0/astropy/nddata/tests/ |
H A D | test_bitmask.py | 244 def test_basic_map(monkeypatch, caching): argument 245 monkeypatch.setattr(bitmask, '_ENABLE_BITFLAG_CACHING', False) 264 def test_extend_map(monkeypatch, caching): argument 265 monkeypatch.setattr(bitmask, '_ENABLE_BITFLAG_CACHING', caching) 284 def test_extend_map_redefine_flag(monkeypatch, caching): argument 285 monkeypatch.setattr(bitmask, '_ENABLE_BITFLAG_CACHING', caching) 311 def test_map_redefine_flag(monkeypatch, caching): argument 312 monkeypatch.setattr(bitmask, '_ENABLE_BITFLAG_CACHING', caching)
|
/dports/astro/py-astropy/astropy-5.0/astropy/time/tests/ |
H A D | test_basic.py | 1379 def test_scale_conversion(monkeypatch): argument 1383 monkeypatch.setattr('astropy.utils.iers.conf.auto_download', True)
|
H A D | test_update_leap_seconds.py | 87 def test_init_thread_safety(self, monkeypatch): argument 92 monkeypatch.setattr(astropy.time.core, '_LEAP_SECONDS_CHECK',
|
/dports/astro/py-astropy/astropy-5.0/astropy/utils/tests/ |
H A D | test_data.py | 188 def fake_readonly_cache(tmpdir, valid_urls, monkeypatch): argument 212 monkeypatch.setattr(os, "mkdir", no_mkdir) 213 monkeypatch.setattr(tempfile, "mkdtemp", no_mkdtemp) 214 monkeypatch.setattr(astropy.utils.data, 1049 def test_data_noastropy_fallback(monkeypatch): argument 1059 monkeypatch.setenv("XDG_CONFIG_HOME", "foo") 1060 monkeypatch.delenv("XDG_CONFIG_HOME") 1061 monkeypatch.setenv("XDG_CACHE_HOME", "bar") 1062 monkeypatch.delenv("XDG_CACHE_HOME") 1678 monkeypatch.setattr(tempfile, "tempdir", str(tmpdir)) [all …]
|
H A D | test_parsing.py | 18 def test_generate_parser(tmp_path, monkeypatch): argument 57 monkeypatch.syspath_prepend(tmp_path)
|
/dports/astro/py-metpy/MetPy-1.1.0/tests/plots/ |
H A D | test_cartopy_utils.py | 73 def test_cartopy_stub(monkeypatch): argument 78 monkeypatch.setitem(sys.modules, 'cartopy.crs', None) 85 def test_plots_getattr(monkeypatch): argument 88 monkeypatch.delattr(mpplots.cartopy_utils, 'USSTATES', raising=False)
|