We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd4674e commit 8fbd9b6Copy full SHA for 8fbd9b6
test/t/test_ps.py
@@ -1,5 +1,7 @@
1
import pytest
2
3
+from conftest import assert_bash_exec
4
+
5
6
def is_int(s):
7
try:
@@ -35,7 +37,9 @@ def test_4(self, completion):
35
37
assert not completion
36
38
39
@pytest.mark.complete("ps --pid ")
- def test_5(self, completion):
40
+ def test_5(self, completion, bash):
41
+ ps_pid_output = assert_bash_exec(bash, "command ps ax -o pid=", want_output=True)
42
+ print("\n=====PS output=====\n", ps_pid_output, "\n======PS output end=====\n")
43
assert completion
44
assert all(map(is_int, completion))
45
0 commit comments