@@ -165,28 +165,30 @@ def test_empty_object_with_newline(tmpdir):
165165 assert ret == 1
166166
167167 # a template to be compared against.
168- multiline = get_resource_path (" empty_object_json_multiline.json" )
168+ multiline = get_resource_path (' empty_object_json_multiline.json' )
169169
170170 # file has empty object with newline => expect fail with default settings
171171 ret = main ([str (multiline )])
172172 assert ret == 1
173173
174174 # launch the autofix with empty object with newline support on that file
175175 to_be_formatted_sameline = tmpdir .join (
176- " not_pretty_formatted_empty_object_json_sameline.json"
176+ ' not_pretty_formatted_empty_object_json_sameline.json' ,
177177 )
178178 shutil .copyfile (str (sameline ), str (to_be_formatted_sameline ))
179179 ret = main (
180- ["--autofix" ,
181- "--empty-object-with-newline" ,
182- str (to_be_formatted_sameline )]
180+ [
181+ '--autofix' ,
182+ '--empty-object-with-newline' ,
183+ str (to_be_formatted_sameline ),
184+ ],
183185 )
184186 # it should have formatted it and don't raise an error code
185187 # to not stop the the commit
186188 assert ret == 0
187189
188- # file was formatted (shouldn't trigger linter with
190+ # file was formatted (shouldn't trigger linter with
189191 # --empty-object-with-newline switch)
190- ret = main ([" --empty-object-with-newline" , str (to_be_formatted_sameline )])
192+ ret = main ([' --empty-object-with-newline' , str (to_be_formatted_sameline )])
191193 assert ret == 0
192194 assert filecmp .cmp (to_be_formatted_sameline , multiline )
0 commit comments