Add return from mock function

This commit is contained in:
Aaron Lichtman 2019-11-16 14:07:39 +01:00
parent 68772d3afe
commit e63ae25433
No known key found for this signature in database
GPG key ID: 22368077DE9F9903

View file

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