๐Ÿ“ฆ scop / bash-completion

๐Ÿ“„ test_fprintd_enroll.py ยท 24 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24import pytest

from conftest import in_container


@pytest.mark.bashcomp(
    cmd="fprintd-enroll",
)
class TestFprintdEnroll:
    @pytest.mark.complete("fprintd-enroll ")
    def test_basic(self, completion):
        assert completion

    @pytest.mark.complete("fprintd-enroll -", require_cmd=True)
    def test_options(self, completion):
        assert completion

    @pytest.mark.skipif(
        in_container(), reason="Probably no fingerprint readers in container"
    )
    @pytest.mark.complete("fprintd-enroll --finger ", require_cmd=True)
    def test_finger(self, completion):
        assert completion