summaryrefslogtreecommitdiffstats
path: root/test/t/test_pidof.py
blob: c33a4d3947825ddce9508881027ed7d16b043871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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