diff --git a/features/steps/core.py b/features/steps/core.py index 7ab7d20d..354bb2bb 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -78,6 +78,7 @@ def open_editor_and_enter(context, text=""): print("TMPFILE:", tmpfile) with open(tmpfile, "w+") as f: f.write(text) + return tmpfile with patch('subprocess.call', side_effect=_mock_editor_function): run(context, "jrnl")