diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 03:10:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 03:10:28 +0000 |
commit | 5dfd1512a40ad8a1788d4c09da30ea13e9148808 (patch) | |
tree | dedd22d9ce13d8e6b0640c71754a7d086adfa3ee /tests/requirements_txt_fixer_test.py | |
parent | Adding upstream version 4.5.0+dfsg. (diff) | |
download | pre-commit-hooks-upstream.tar.xz pre-commit-hooks-upstream.zip |
Adding upstream version 4.6.0+dfsg.upstream/4.6.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/requirements_txt_fixer_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/requirements_txt_fixer_test.py b/tests/requirements_txt_fixer_test.py index b725afa..c400be1 100644 --- a/tests/requirements_txt_fixer_test.py +++ b/tests/requirements_txt_fixer_test.py @@ -68,6 +68,12 @@ from pre_commit_hooks.requirements_txt_fixer import Requirement b'f<=2\n' b'g<2\n', ), + (b'a==1\nb==1\na==1\n', FAIL, b'a==1\nb==1\n'), + ( + b'a==1\nb==1\n#comment about a\na==1\n', + FAIL, + b'#comment about a\na==1\nb==1\n', + ), (b'ocflib\nDjango\nPyMySQL\n', FAIL, b'Django\nocflib\nPyMySQL\n'), ( b'-e git+ssh://git_url@tag#egg=ocflib\nDjango\nPyMySQL\n', |