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


class TestSynclient:

    # synclient -l may error out with e.g.
    # "Couldn't find synaptics properties. No synaptics driver loaded?"
    @pytest.mark.complete(
        "synclient ", require_cmd=True, xfail="! synclient -l &>/dev/null"
    )
    def test_1(self, completion):
        assert completion

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