def tearDown(self): PulpRPMTests.tearDown(self) Consumer.get_collection().remove() Repo.get_collection().remove() RepoContentUnit.get_collection().remove() RepoDistributor.get_collection().remove() database.clean() plugins.finalize()
def setUp(self): PulpRPMTests.setUp(self) mock_yum.install() self.deployer = Deployer() dpath, hpath = self.deployer.install() self.container = Container(root=dpath, path=[hpath]) self.dispatcher = Dispatcher(self.container) self.__system = os.system os.system = Mock()
def setUp(self): PulpRPMTests.setUp(self) from yum.callbacks import PT_MESSAGES from pulp_rpm.handler.rpmtools import\ ProcessTransCallback,\ RPMCallback,\ DownloadCallback,\ ProgressReport self.PT_MESSAGES = PT_MESSAGES self.ProcessTransCallback = ProcessTransCallback self.RPMCallback = RPMCallback self.DownloadCallback = DownloadCallback self.ProgressReport = ProgressReport
def setUp(self): PulpRPMTests.setUp(self) Consumer.get_collection().remove() Repo.get_collection().remove() RepoContentUnit.get_collection().remove() RepoDistributor.get_collection().remove() self.init_types() plugins.initialize() plugins._MANAGER.profilers.add_plugin( 'ERRATA_PROFILER', RPMErrataProfiler, {}, (self.ERRATA_TYPE_ID,)) plugins._MANAGER.distributors.add_plugin( FakeDistributor.ID, FakeDistributor, {}, (self.ERRATA_TYPE_ID,))
def tearDown(self): PulpRPMTests.tearDown(self) self.deployer.uninstall() os.system = self.__system YumBase.reset()
def tearDown(self): PulpRPMTests.tearDown(self) YumBase.reset()
def setUp(self): PulpRPMTests.setUp(self) mock_yum.install() from pulp_rpm.handler.rpmtools import Package, PackageGroup self.Package = Package self.PackageGroup = PackageGroup