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


@pytest.mark.bashcomp(
    pre_cmds=("HOME=$PWD/cvs",),
    ignore_env=r"^[+-]COMP_CVS_REMOTE=",
)
class TestCvsps:
    @pytest.mark.complete("cvsps -", require_cmd=True)
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("cvsps ")
    def test_2(self, completion):
        assert [x for x in completion if ":pserver:" in x]