๐Ÿ“ฆ scop / bash-completion

๐Ÿ“„ test_rmdir.py ยท 17 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17import pytest


class TestRmdir:
    @pytest.mark.complete("rmdir ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("/bin/rmdir shared/default/")
    def test_2(self, completion):
        """Should complete dirs only, also when invoked using full path."""
        assert completion == ["bar bar.d/", "foo.d/"]

    @pytest.mark.complete("rmdir -", require_longopt=True)
    def test_options(self, completion):
        assert completion