Skip to content

Commit af140a3

Browse files
committed
DEBUG: show output of patch
1 parent 2b41275 commit af140a3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/t/test_patch.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import pytest
22

3+
from conftest import assert_bash_exec
4+
35

46
class TestPatch:
57
@pytest.mark.complete("patch ")
68
def test_1(self, completion):
79
assert completion
810

911
@pytest.mark.complete("patch -", require_cmd=True)
10-
def test_2(self, completion):
12+
def test_2(self, bash, completion):
13+
help_out = assert_bash_exec(bash, "patch --help", want_output=True)
14+
version = assert_bash_exec(bash, "patch --version", want_output=True)
15+
print("help: ", help_out, "\nversion:\n", version)
1116
assert completion

0 commit comments

Comments
 (0)