mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-30 10:16:54 +00:00
fixed formatting issues
This commit is contained in:
parent
df46f71980
commit
cd47a0867e
2 changed files with 25 additions and 5 deletions
|
|
@ -120,9 +120,24 @@ from pre_commit_hooks.requirements_txt_fixer import Requirement
|
|||
b'a=2.0.0 \\\n --hash=sha256:abcd\nb==1.0.0\n',
|
||||
),
|
||||
(b'bar\nfoo\n', ['--fail-without-version'], FAIL, b'bar\nfoo\n'),
|
||||
(b'bar==1.0\nfoo==1.1a\n', ['--fail-without-version'], PASS, b'bar==1.0\nfoo==1.1a\n'),
|
||||
(b'#test\nbar==1.0\nfoo==1.1a\n', ['--fail-without-version'], PASS, b'#test\nbar==1.0\nfoo==1.1a\n'),
|
||||
(b'bar==1.0\n#test\nfoo==1.1a\n', ['--fail-without-version'], PASS, b'bar==1.0\n#test\nfoo==1.1a\n'),
|
||||
(
|
||||
b'bar==1.0\nfoo==1.1a\n',
|
||||
['--fail-without-version'],
|
||||
PASS,
|
||||
b'bar==1.0\nfoo==1.1a\n',
|
||||
),
|
||||
(
|
||||
b'#test\nbar==1.0\nfoo==1.1a\n',
|
||||
['--fail-without-version'],
|
||||
PASS,
|
||||
b'#test\nbar==1.0\nfoo==1.1a\n',
|
||||
),
|
||||
(
|
||||
b'bar==1.0\n#test\nfoo==1.1a\n',
|
||||
['--fail-without-version'],
|
||||
PASS,
|
||||
b'bar==1.0\n#test\nfoo==1.1a\n',
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_integration(input_s, argv, expected_retval, output, tmpdir):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue