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()
1 2 3 4 5 6 7 8 9
import 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()