diff options
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/900-implements.yarn | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 4aa602f..27c9aab 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -119,9 +119,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. assertEqual(expected, vars['status_code']) IMPLEMENTS THEN body matches (.+) - echo '-----------------------------------------------' - sed 's/^/---> /' ick_controller.log - echo '-----------------------------------------------' + print('-----------------------------------------------') + with open('ick_controller.log') as f: + for line in f: + print('---->', line) + print('-----------------------------------------------') expected_text = get_next_match() expected = json.loads(expected_text) print('actual body', repr(vars['body'])) |