示例#1
0
    def setUp(self):
        conf = support.FakeConf()
        self.x = support.MockRepo('x', conf)
        self.xx = support.MockRepo('xx', conf)
        self.y = support.MockRepo('y', conf)
        self.z = support.MockRepo('z', conf)

        self.repos = dnf.repodict.RepoDict()
        self.repos.add(self.x)
        self.repos.add(self.xx)
        self.repos.add(self.y)
        self.repos.add(self.z)
        self.full_set = {self.x, self.xx, self.y, self.z}
示例#2
0
文件: test_repo.py 项目: yurchor/dnf
 def setUpClass(cls):
     cls.TMP_CACHEDIR = tempfile.mkdtemp(prefix='dnf-repotest-')
     cls.conf = support.FakeConf(cachedir=cls.TMP_CACHEDIR)
示例#3
0
文件: test_repo.py 项目: yurchor/dnf
 def setUp(self):
     # directly loads the repo as created by createrepo
     self.conf = support.FakeConf(cachedir=REPOS)
     self.repo = dnf.repo.Repo("rpm", self.conf)
     self.repo.name = "r for riot"
示例#4
0
 def __init__(self):
     self.marked = []
     self.repos = dnf.repodict.RepoDict()
     self.conf = support.FakeConf()