From 7dcc91431e947943be9d8a4b1415968ca77c5852 Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Sat, 16 Nov 2019 14:16:36 +0100 Subject: [PATCH] Add debug statements --- features/steps/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/steps/core.py b/features/steps/core.py index 354bb2bb..84d4ccc9 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -78,6 +78,8 @@ def open_editor_and_enter(context, text=""): print("TMPFILE:", tmpfile) with open(tmpfile, "w+") as f: f.write(text) + + print("File contents:", open(tmpfile, "r").read()) return tmpfile with patch('subprocess.call', side_effect=_mock_editor_function):