From e63ae25433dcd6dfc92569333fd2a85fde0ddb59 Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Sat, 16 Nov 2019 14:07:39 +0100 Subject: [PATCH] Add return from mock function --- features/steps/core.py | 1 + 1 file changed, 1 insertion(+) 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")