mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Add configurable secondary backup location
This commit is contained in:
@@ -86,3 +86,15 @@ def test_relay_and_profile_actions(monkeypatch, capsys):
|
||||
out = capsys.readouterr().out
|
||||
assert fp1 in out
|
||||
assert fp2 in out
|
||||
|
||||
|
||||
def test_settings_menu_additional_backup(monkeypatch):
|
||||
with TemporaryDirectory() as tmpdir:
|
||||
tmp_path = Path(tmpdir)
|
||||
pm, cfg_mgr, fp_mgr = setup_pm(tmp_path, monkeypatch)
|
||||
|
||||
inputs = iter(["9", "12"])
|
||||
with patch("main.handle_set_additional_backup_location") as handler:
|
||||
with patch("builtins.input", side_effect=lambda *_: next(inputs)):
|
||||
main.handle_settings(pm)
|
||||
handler.assert_called_once_with(pm)
|
||||
|
Reference in New Issue
Block a user