Update features/steps/core.py

Co-Authored-By: pspeter <peter.schmidb@gmail.com>
This commit is contained in:
Aaron Lichtman 2019-11-16 13:51:55 +01:00 committed by GitHub
parent 9b0ebb7d84
commit 68772d3afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)