mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add multiline mode to pygrep
This commit is contained in:
parent
2e6cd2a44c
commit
69333fa227
2 changed files with 20 additions and 1 deletions
|
|
@ -38,3 +38,9 @@ def test_ignore_case(some_files, cap_out):
|
|||
out = cap_out.get()
|
||||
assert ret == 1
|
||||
assert out == 'f2:1:[INFO] hi\n'
|
||||
|
||||
def test_null_data(some_files, cap_out):
|
||||
ret = pygrep.main(('--null-data', r'foo.*bar', 'f1', 'f2', 'f3'))
|
||||
out = cap_out.get()
|
||||
assert ret == 1
|
||||
assert out == 'f1:foobar\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue