summaryrefslogtreecommitdiff
path: root/test/t/test_pgrep.py
blob: 9c2333119141b82d1c9a1b99664122db07dfab64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest


class TestPgrep:

    # "p": Assume that our process name completion runs ps
    @pytest.mark.complete("pgrep p")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("pgrep -", require_cmd=True)
    def test_2(self, completion):
        assert completion