Add debug statements

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

View file

@ -78,6 +78,8 @@ def open_editor_and_enter(context, text=""):
print("TMPFILE:", tmpfile) print("TMPFILE:", tmpfile)
with open(tmpfile, "w+") as f: with open(tmpfile, "w+") as f:
f.write(text) f.write(text)
print("File contents:", open(tmpfile, "r").read())
return tmpfile return tmpfile
with patch('subprocess.call', side_effect=_mock_editor_function): with patch('subprocess.call', side_effect=_mock_editor_function):