diff options
Diffstat (limited to 'test/t/test_scrub.py')
-rw-r--r-- | test/t/test_scrub.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/t/test_scrub.py b/test/t/test_scrub.py new file mode 100644 index 0000000..5853ad2 --- /dev/null +++ b/test/t/test_scrub.py @@ -0,0 +1,19 @@ +import pytest + + +class TestScrub: + @pytest.mark.complete("scrub ") + def test_1(self, completion): + assert completion + + @pytest.mark.complete("scrub -", require_cmd=True) + def test_2(self, completion): + assert completion + + # Not all scrub versions list available patterns in --help output + @pytest.mark.complete( + "scrub -p ", + xfail="! (scrub --help 2>&1 || :) | command grep -q ^Available", + ) + def test_3(self, completion): + assert completion |