1 2 3 4 5 6 7 8 9 10 11 12 13
import pytest class TestSu: @pytest.mark.complete("su ") def test_1(self, completion): assert completion @pytest.mark.complete( "su -", require_cmd=True, skipif="[[ $OSTYPE != *linux* ]]" ) def test_2(self, completion): assert completion