From c23efa7f801550c808e1adb4ec654bc11be70305 Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Sat, 16 Nov 2019 14:42:39 +0100 Subject: [PATCH] Fix test? --- features/core.feature | 2 +- features/steps/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/core.feature b/features/core.feature index 854fa53f..bff53e2f 100644 --- a/features/core.feature +++ b/features/core.feature @@ -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 diff --git a/features/steps/core.py b/features/steps/core.py index 2175bd28..95e39af8 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -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)