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


@pytest.mark.bashcomp(pre_cmds=("HOME=$PWD/cvs",))
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]