mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
wrap long pygrep test line
This commit is contained in:
parent
635912514d
commit
9581ffc148
1 changed files with 3 additions and 1 deletions
|
|
@ -143,7 +143,9 @@ def test_grep_hook_matching(some_files, tmp_path):
|
||||||
|
|
||||||
@pytest.mark.usefixtures('some_files')
|
@pytest.mark.usefixtures('some_files')
|
||||||
def test_main_reads_nul_delimited_filenames_from_stdin(cap_out):
|
def test_main_reads_nul_delimited_filenames_from_stdin(cap_out):
|
||||||
with mock.patch.object(sys.stdin.buffer, 'read', return_value=b'f1\x00f2\x00'):
|
with mock.patch.object(
|
||||||
|
sys.stdin.buffer, 'read', return_value=b'f1\x00f2\x00',
|
||||||
|
):
|
||||||
ret = pygrep.main(('foo',))
|
ret = pygrep.main(('foo',))
|
||||||
|
|
||||||
out = cap_out.get()
|
out = cap_out.get()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue