Fix test?

This commit is contained in:
Aaron Lichtman 2019-11-16 14:42:39 +01:00
parent 4cfff00d0a
commit c23efa7f80
No known key found for this signature in database
GPG key ID: 22368077DE9F9903
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ Feature: Basic reading and writing to a journal
# Note that the expected output is actually "[Nothing saved to file]" but due to mocking limitations, we expect no output here.
Scenario: Writing an empty entry from the editor
Given we use the config "editor.yaml"
When we open the editor and enter ""
When we open the editor and enter nothing
Then we should see the message "[Nothing saved to file]"
Scenario: Filtering for dates

View file

@ -67,7 +67,7 @@ def set_config(context, config_file):
cf.write("version: {}".format(__version__))
@when('we open the editor and enter')
@when('we open the editor and enter nothing')
@when('we open the editor and enter "{text}"')
def open_editor_and_enter(context, text=""):
text = (text or context.text)