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}
def setUpClass(cls): cls.TMP_CACHEDIR = tempfile.mkdtemp(prefix='dnf-repotest-') cls.conf = support.FakeConf(cachedir=cls.TMP_CACHEDIR)
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"
def __init__(self): self.marked = [] self.repos = dnf.repodict.RepoDict() self.conf = support.FakeConf()