本文整理汇总了Python中pulp.server.managers.factory.reset函数的典型用法代码示例。如果您正苦于以下问题:Python reset函数的具体用法?Python reset怎么用?Python reset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了reset函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
def tearDown(self):
super(TestDoSync, self).tearDown()
mock_plugins.reset()
manager_factory.reset()
Repo.get_collection().remove()
RepoImporter.get_collection().remove()
RepoSyncResult.get_collection().remove()
MockRepoPublishManager.reset()
示例2: tearDown
def tearDown(self):
super(BaseProfilerConduitTests, self).tearDown()
Consumer.get_collection().remove()
Repo.get_collection().remove()
RepoDistributor.get_collection().remove()
Bind.get_collection().remove()
RepoContentUnit.get_collection().remove()
UnitProfile.get_collection().remove()
typedb.clean()
factory.reset()
示例3: tearDown
def tearDown(self):
super(BaseProfilerConduitTests, self).tearDown()
Consumer.get_collection().remove()
model.Repository.objects.delete()
model.Distributor.objects.delete()
Bind.get_collection().remove()
RepoContentUnit.get_collection().remove()
UnitProfile.get_collection().remove()
typedb.clean()
factory.reset()
mock_plugins.reset()
示例4: test_register_and_reset
def test_register_and_reset(self):
"""
Tests that registering a new class and resetting properly affects the
class mappings.
"""
# Setup
class FakeManager:
pass
factory.register_manager(factory.TYPE_REPO, FakeManager)
# Test Register
manager = factory.get_manager(factory.TYPE_REPO)
self.assertTrue(isinstance(manager, FakeManager))
# Test Reset
factory.reset()
manager = factory.get_manager(factory.TYPE_REPO)
self.assertTrue(isinstance(manager, RepoManager))
示例5: tearDown
def tearDown(self):
super(UnitAssociationQueryTests, self).tearDown()
manager_factory.reset()
示例6: tearDown
def tearDown(self):
super(RepoUnitAssociationManagerTests, self).tearDown()
mock_plugins.reset()
manager_factory.reset()
示例8: tearDown
def tearDown(self):
super(ImporterScratchPadMixinTests, self).tearDown()
manager_factory.reset()
示例9: tearDown
def tearDown(self):
super(DistributorScratchpadMixinTests, self).tearDown()
manager_factory.reset()
示例10: clean
def clean(self):
super(RepoUnitAssociationQueryTests, self).clean()
manager_factory.reset()