Tests for encryption

This commit is contained in:
Manuel Ebert 2013-07-22 20:08:53 +02:00
parent 95f68a5109
commit b1266dcc4e
5 changed files with 56 additions and 0 deletions

View file

@ -11,6 +11,7 @@ def before_scenario(context, scenario):
"""Before each scenario, backup all config and journal test data."""
context.messages = StringIO()
jrnl.util.STDERR = context.messages
jrnl.util.TEST = True
for folder in ("configs", "journals"):
original = os.path.join("features", folder)
backup = os.path.join("features", folder+"_backup")