Added ability to auto-prompt for password for encrypted journals

Only uses password when prompted, and doesn't get in the way of other
input prompts. This allows us to run the same scenarios on both
encrypted journals and other journal types.

Co-authored-by: Micah Jerome Ellison <micah.jerome.ellison@gmail.com>
This commit is contained in:
Jonathan Wren 2020-09-26 14:52:31 -07:00
parent fda3fe2357
commit cf369f3f84
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
5 changed files with 42 additions and 28 deletions

View file

@ -1,7 +1,8 @@
Feature: Delete entries from journal
Scenario Outline: Delete flag allows deletion of single entry
Given we use the config "<config>.yaml"
When we run "jrnl -n 1"
And we use the password "test" if prompted
When we run "jrnl -1"
Then the output should contain "2020-09-24 09:14 The third entry finally"
When we run "jrnl --delete" and enter
"""
@ -20,6 +21,7 @@ Feature: Delete entries from journal
Examples: Configs
| config |
| basic_onefile |
| basic_encrypted |
# | basic_folder | @todo
# | basic_dayone | @todo