Skip to content

Commit 45a2182

Browse files
committed
DEBUG: show output of truncate
1 parent 8f5fff1 commit 45a2182

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/t/test_truncate.py

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

3+
from conftest import assert_bash_exec
34

45
class TestTruncate:
56
@pytest.mark.complete("truncate ")
67
def test_basic(self, completion):
78
assert completion
89

910
@pytest.mark.complete("truncate -", require_cmd=True)
10-
def test_options(self, completion):
11+
def test_options(self, bash, completion):
12+
help_out = assert_bash_exec(bash, "truncate --help", want_output=True)
13+
version = assert_bash_exec(bash, "truncate --version", want_output=True)
14+
print("help: ", help_out, "\nversion:\n", version)
1115
assert completion

0 commit comments

Comments
 (0)