From 68772d3afe948137a11e5534c70bd68e739e0dee Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Sat, 16 Nov 2019 13:51:55 +0100 Subject: [PATCH] Update features/steps/core.py Co-Authored-By: pspeter --- features/steps/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/steps/core.py b/features/steps/core.py index 66fa1e11..7ab7d20d 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -74,7 +74,7 @@ def open_editor_and_enter(context, text=""): print("open_editor_and_enter called") def _mock_editor_function(command): print("_mock_editor_function called") - tmpfile = command.split()[-1] + tmpfile = command[-1] print("TMPFILE:", tmpfile) with open(tmpfile, "w+") as f: f.write(text)