summaryrefslogtreecommitdiff
path: root/test/t/test_apt_cache.py
blob: a1c29cdacb9b015b571df97dbcb5127a062583f9 (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 [", require_cmd=True)
    def test_2(self, completion):
        # Doesn't actually fail on grep errors, but takes a long time.
        assert not completion