summaryrefslogtreecommitdiffstats
path: root/test/t/test_pidof.py
blob: de77298c5dd6cd31c5d8ab15de9e14ff494cc648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest


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

    @pytest.mark.complete(
        "pidof -", require_cmd=True, xfail="! pidof --help &>/dev/null"
    )
    def test_2(self, completion):
        assert completion