mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fixes encryption tests
This commit is contained in:
parent
84556c178a
commit
95e7660159
2 changed files with 1 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
When we run "jrnl --encrypt" and enter "swordfish"
|
When we run "jrnl --encrypt" and enter "swordfish"
|
||||||
Then we should see the message "Journal encrypted"
|
Then we should see the message "Journal encrypted"
|
||||||
and the config should have "encrypt" set to "bool:True"
|
and the config should have "encrypt" set to "bool:True"
|
||||||
When we run "jrnl -n 1" and enter "swordish"
|
When we run "jrnl -n 1" and enter "swordfish"
|
||||||
Then we should see the message "Password"
|
Then we should see the message "Password"
|
||||||
and the output should contain "2013-06-10 15:40 Life is good"
|
and the output should contain "2013-06-10 15:40 Life is good"
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,6 @@ def config_var(context, key, value):
|
||||||
with open(jrnl.CONFIG_PATH) as config_file:
|
with open(jrnl.CONFIG_PATH) as config_file:
|
||||||
config = json.load(config_file)
|
config = json.load(config_file)
|
||||||
assert key in config
|
assert key in config
|
||||||
print key, config[key], type(config[key]), value, type(value)
|
|
||||||
assert config[key] == value
|
assert config[key] == value
|
||||||
|
|
||||||
@then('the journal should have {number:d} entries')
|
@then('the journal should have {number:d} entries')
|
||||||
|
|
Loading…
Add table
Reference in a new issue