summaryrefslogtreecommitdiffstats
path: root/test/t/test_invoke_rc_d.py
blob: 61e2987b003f35eda2f86d62ad07dd7e4931888f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pytest


@pytest.mark.bashcomp(cmd="invoke-rc.d")
class TestInvokeRcD:
    @pytest.mark.complete("invoke-rc.d ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("invoke-rc.d --no-fallback --")
    def test_2(self, completion):
        """Test already specified option is not offered."""
        assert completion
        assert "--no-fallback" not in completion