本文整理汇总了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()
开发者ID:beav,项目名称:pulp,代码行数:8,代码来源:test_sync.py
示例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()
开发者ID:fdammeke,项目名称:pulp,代码行数:10,代码来源:test_profiler_conduit.py
示例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()
开发者ID:alanoe,项目名称:pulp,代码行数:11,代码来源:test_profiler.py
示例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))
开发者ID:credativ,项目名称:pulp,代码行数:20,代码来源:test_factory.py
示例5: tearDown
def tearDown(self):
super(UnitAssociationQueryTests, self).tearDown()
manager_factory.reset()
开发者ID:fdammeke,项目名称:pulp,代码行数:3,代码来源:test_repo_unit_association_query_manager.py
示例6: tearDown
def tearDown(self):
super(RepoUnitAssociationManagerTests, self).tearDown()
mock_plugins.reset()
manager_factory.reset()
开发者ID:jeremycline,项目名称:pulp,代码行数:4,代码来源:test_unit_association.py
示例7: clean
def clean(self):
factory.reset()
开发者ID:credativ,项目名称:pulp,代码行数:2,代码来源:test_factory.py
示例8: tearDown
def tearDown(self):
super(ImporterScratchPadMixinTests, self).tearDown()
manager_factory.reset()
开发者ID:mccun934,项目名称:pulp,代码行数:3,代码来源:test_importer_scratchpad_mixin.py
示例9: tearDown
def tearDown(self):
super(DistributorScratchpadMixinTests, self).tearDown()
manager_factory.reset()
开发者ID:fdammeke,项目名称:pulp,代码行数:3,代码来源:test_distributor_scratchpad_mixin.py
示例10: clean
def clean(self):
super(RepoUnitAssociationQueryTests, self).clean()
manager_factory.reset()
开发者ID:pombreda,项目名称:pulp,代码行数:3,代码来源:test_repositories.py
注:本文中的pulp.server.managers.factory.reset函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论