Remove tests for having password in config

This commit is contained in:
Manuel Ebert 2013-10-17 16:00:45 -07:00
parent a96435b6dc
commit c6c425093e
3 changed files with 2 additions and 22 deletions

View file

@ -1,14 +0,0 @@
{
"default_hour": 9,
"timeformat": "%Y-%m-%d %H:%M",
"linewrap": 80,
"encrypt": true,
"editor": "",
"default_minute": 0,
"highlight": true,
"password": "bad doggie no biscuit",
"journals": {
"default": "features/journals/encrypted.journal"
},
"tagsymbols": "@"
}

View file

@ -6,11 +6,6 @@
Then we should see the message "Password"
and the output should contain "2013-06-10 15:40 Life is good"
Scenario: Loading an encrypted journal with password in config
Given we use the config "encrypted_with_pw.json"
When we run "jrnl -n 1"
Then the output should contain "2013-06-10 15:40 Life is good"
Scenario: Decrypting a journal
Given we use the config "encrypted.json"
When we run "jrnl --decrypt" and enter "bad doggie no biscuit"
@ -26,4 +21,3 @@
When we run "jrnl -n 1" and enter "swordfish"
Then we should see the message "Password"
and the output should contain "2013-06-10 15:40 Life is good"

View file

@ -49,7 +49,7 @@ def set_keychain(journal_name, password):
keyring.delete_password('jrnl', journal_name)
except:
pass
else:
elif not TEST:
keyring.set_password('jrnl', journal_name, password)
def u(s):