summaryrefslogtreecommitdiff
path: root/test/t/test_apt_cache.py
blob: 0cb50ef647f7e34c8308db74d21766c2fec35174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest


@pytest.mark.bashcomp(cmd="apt-cache")
class TestAptCache:
    @pytest.mark.complete("apt-cache ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("apt-cache showsrc [")
    def test_2(self, completion):
        # Doesn't actually fail on grep errors, but takes a long time.
        assert not completion