Automatically fix package=version in requirements.txt

This commit is contained in:
Paul Hooijenga 2018-10-23 21:26:37 +02:00
parent 86bfe8c475
commit f8b8997c07
2 changed files with 4 additions and 0 deletions

View file

@ -30,6 +30,7 @@ from pre_commit_hooks.requirements_txt_fixer import Requirement
),
(b'bar\npkg-resources==0.0.0\nfoo\n', FAIL, b'bar\nfoo\n'),
(b'foo\npkg-resources==0.0.0\nbar\n', FAIL, b'bar\nfoo\n'),
(b'foo=1\n', FAIL, b'foo==1\n'),
),
)
def test_integration(input_s, expected_retval, output, tmpdir):