๐Ÿ“ฆ scop / bash-completion

๐Ÿ“„ test_portupgrade.py ยท 9 lines
1
2
3
4
5
6
7
8
9import pytest


@pytest.mark.bashcomp(pre_cmds=("PKG_DBDIR=$PWD/pkgtools/db",))
class TestPortupgrade:
    @pytest.mark.complete("portupgrade ")
    def test_1(self, completion):
        assert completion == "a b-c-d".split()