add edit flag to secret cli

This commit is contained in:
Jörg Thalheim
2023-09-13 10:51:50 +02:00
parent d74dc7fe22
commit 17af763ad1
3 changed files with 51 additions and 25 deletions

View File

@@ -145,6 +145,10 @@ def test_secrets(
assert len(users) == 1, f"users: {users}"
owner = users[0]
monkeypatch.setenv("EDITOR", "cat")
cli.run(["secrets", "set", "--edit", "initialkey"])
monkeypatch.delenv("EDITOR")
cli.run(["secrets", "rename", "initialkey", "key"])
capsys.readouterr() # empty the buffer