๐Ÿ“ฆ scop / bash-completion

๐Ÿ“„ test_lvm.py ยท 16 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16import pytest


class TestLvm:
    @pytest.mark.complete("lvm pv")
    def test_1(self, completion):
        assert completion

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