Skip to content

Commit 7d878b5

Browse files
committed
Fix test cases for unified_diff
1 parent 31e740e commit 7d878b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/pretty_format_json_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ def test_diffing_output(capsys):
111111
resource_path = get_resource_path('not_pretty_formatted_json.json')
112112
expected_retval = 1
113113
expected_out = '''\
114-
---
115-
+++
116-
@@ -1,6 +1,9 @@
114+
--- \n+++ \n@@ -1,6 +1,9 @@
117115
{
118116
- "foo":
119117
- "bar",
@@ -128,7 +126,7 @@ def test_diffing_output(capsys):
128126
+ "foo": "bar"
129127
}
130128
131-
''' # noqa: W291
129+
'''
132130
expected_err = 'File {} is not pretty-formatted\n'.format(resource_path)
133131

134132
actual_retval = main([resource_path])

0 commit comments

Comments
 (0)