Lines Matching refs:monkeypatch

69     def keys_dir(self, request, monkeypatch, tmpdir):  argument
70 monkeypatch.setenv('BORG_KEYS_DIR', str(tmpdir))
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')
134 def test_keyfile_nonce_rollback_protection(self, monkeypatch, keys_dir): argument
135 monkeypatch.setenv('BORG_PASSPHRASE', 'test')
144 def test_keyfile_kfenv(self, tmpdir, monkeypatch): argument
146 monkeypatch.setenv('BORG_KEY_FILE', str(keyfile))
147 monkeypatch.setenv('BORG_PASSPHRASE', 'testkf')
160 def test_keyfile2(self, monkeypatch, keys_dir): argument
163 monkeypatch.setenv('BORG_PASSPHRASE', 'passphrase')
167 def test_keyfile2_kfenv(self, tmpdir, monkeypatch): argument
171 monkeypatch.setenv('BORG_KEY_FILE', str(keyfile))
172 monkeypatch.setenv('BORG_PASSPHRASE', 'passphrase')
176 def test_keyfile_blake2(self, monkeypatch, keys_dir): argument
179 monkeypatch.setenv('BORG_PASSPHRASE', 'passphrase')
183 def test_passphrase(self, keys_dir, monkeypatch): argument
184 monkeypatch.setenv('BORG_PASSPHRASE', 'test')
214 def test_decrypt_integrity(self, monkeypatch, keys_dir): argument
217 monkeypatch.setenv('BORG_PASSPHRASE', 'passphrase')
258 def test_authenticated_encrypt(self, monkeypatch): argument
259 monkeypatch.setenv('BORG_PASSPHRASE', 'test')
269 def test_blake2_authenticated_encrypt(self, monkeypatch): argument
270 monkeypatch.setenv('BORG_PASSPHRASE', 'test')
282 def test_passphrase_new_verification(self, capsys, monkeypatch): argument
283 monkeypatch.setattr(getpass, 'getpass', lambda prompt: "12aöäü")
284 monkeypatch.setenv('BORG_DISPLAY_PASSPHRASE', 'no')
290 monkeypatch.setenv('BORG_DISPLAY_PASSPHRASE', 'yes')
297 monkeypatch.setattr(getpass, 'getpass', lambda prompt: "1234/@=")
303 def test_passphrase_new_empty(self, capsys, monkeypatch): argument
304 monkeypatch.delenv('BORG_PASSPHRASE', False)
305 monkeypatch.setattr(getpass, 'getpass', lambda prompt: "")
311 def test_passphrase_new_retries(self, monkeypatch): argument
312 monkeypatch.delenv('BORG_PASSPHRASE', False)
314 monkeypatch.setattr(getpass, 'getpass', lambda prompt: str(next(ascending_numbers)))
324 def key(self, monkeypatch): argument
325 monkeypatch.setenv('BORG_PASSPHRASE', 'test')