Use asottile/add-trailing-comma

This commit is contained in:
Anthony Sottile 2017-07-12 18:35:24 -07:00
parent 286962eeb7
commit 2a902e0a07
19 changed files with 48 additions and 43 deletions

View file

@ -21,7 +21,7 @@ from pre_commit_hooks.file_contents_sorter import PASS
(b'@\n-\n_\n#\n', FAIL, b'#\n-\n@\n_\n'),
(b'extra\n\n\nwhitespace\n', FAIL, b'extra\nwhitespace\n'),
(b'whitespace\n\n\nextra\n', FAIL, b'extra\nwhitespace\n'),
)
),
)
def test_integration(input_s, expected_retval, output, tmpdir):
path = tmpdir.join('file.txt')