๐Ÿ“ฆ scop / bash-completion

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


@pytest.mark.bashcomp(cmd="xvfb-run")
class TestXvfbRun:
    @pytest.mark.complete("xvfb-run ")
    def test_no_args(self, completion):
        assert any(x in completion for x in ("bash", "xvfb-run"))

    @pytest.mark.complete("xvfb-run -", require_cmd=True)
    def test_options(self, completion):
        assert completion