File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ def test_badfile_main():
108108
109109
110110def test_diffing_output (capsys ):
111+ resource_path = get_resource_path ('not_pretty_formatted_json.json' )
111112 expected_retval = 1
112113 expected_out = ''' {
113114- "foo":
@@ -125,9 +126,11 @@ def test_diffing_output(capsys):
125126 }
126127
127128'''
129+ expected_err = 'File {} is not pretty-formatted\n ' .format (resource_path )
128130
129- actual_retval = main ([get_resource_path ( 'not_pretty_formatted_json.json' ) ])
130- out , err = capsys .readouterr ()
131+ actual_retval = main ([resource_path ])
132+ actual_out , actual_err = capsys .readouterr ()
131133
132134 assert actual_retval == expected_retval
133- assert out == expected_out
135+ assert actual_out == expected_out
136+ assert actual_err == expected_err
You can’t perform that action at this time.
0 commit comments