๐Ÿ“ฆ scop / bash-completion

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


class TestInflux:
    @pytest.mark.complete("influx ")
    def test_nothing(self, completion):
        assert not completion

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

    @pytest.mark.complete("influx -format ", require_cmd=True)
    def test_format(self, completion):
        assert completion