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

import pytest


@pytest.mark.bashcomp(pre_cmds=("PKG_DBDIR=$PWD/pkgtools/db",))
class TestPkgDeinstall:
    @pytest.mark.complete("pkg_deinstall ")
    def test_1(self, completion):
        dirs = sorted(
            x
            for x in os.listdir("pkgtools/db")
            if os.path.isdir("pkgtools/db/%s" % x)
        )
        assert completion == dirs