diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:18:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-16 11:18:13 +0000 |
commit | 535187ceaf88786aaf22560790564f1f6965ba30 (patch) | |
tree | 82456c5d0bc77961759812ddd85414435ba89127 /tests/file_contents_sorter_test.py | |
parent | Adding upstream version 4.4.0+dfsg. (diff) | |
download | pre-commit-hooks-535187ceaf88786aaf22560790564f1f6965ba30.tar.xz pre-commit-hooks-535187ceaf88786aaf22560790564f1f6965ba30.zip |
Adding upstream version 4.5.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/file_contents_sorter_test.py')
-rw-r--r-- | tests/file_contents_sorter_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/file_contents_sorter_test.py b/tests/file_contents_sorter_test.py index 5e79e40..49b3b79 100644 --- a/tests/file_contents_sorter_test.py +++ b/tests/file_contents_sorter_test.py @@ -10,7 +10,9 @@ from pre_commit_hooks.file_contents_sorter import PASS @pytest.mark.parametrize( ('input_s', 'argv', 'expected_retval', 'output'), ( - (b'', [], FAIL, b'\n'), + (b'', [], PASS, b''), + (b'\n', [], FAIL, b''), + (b'\n\n', [], FAIL, b''), (b'lonesome\n', [], PASS, b'lonesome\n'), (b'missing_newline', [], FAIL, b'missing_newline\n'), (b'newline\nmissing', [], FAIL, b'missing\nnewline\n'), |