1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import pytest class TestDd: @pytest.mark.complete( "dd --", xfail=( "! dd --help &>/dev/null || " "! dd --help 2>&1 | command grep -qF -- --help" ), ) def test_1(self, completion): assert completion @pytest.mark.complete("dd bs") def test_2(self, completion): assert completion == "="