本文整理汇总了Python中metashare.test_utils.clean_storage函数的典型用法代码示例。如果您正苦于以下问题:Python clean_storage函数的具体用法?Python clean_storage怎么用?Python clean_storage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了clean_storage函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: tearDown
def tearDown(self):
"""
Clean up the test
"""
test_utils.clean_resources_db()
test_utils.clean_storage()
test_utils.clean_user_db()
示例2: tearDown
def tearDown(self):
test_utils.clean_resources_db()
test_utils.clean_storage()
test_utils.clean_user_db()
super(EditorTest, self).tearDown()
self.assertEqual([], self.verification_errors)
示例3: tearDownClass
def tearDownClass(cls):
"""
Clean up the test
"""
test_utils.clean_resources_db()
test_utils.clean_storage()
test_utils.clean_user_db()
LOGGER.info("finished '{}' tests".format(cls.__name__))
示例4: tearDown
def tearDown(self):
"""
Clean up the test
"""
test_utils.clean_resources_db()
test_utils.clean_storage()
test_utils.clean_user_db()
test_utils.set_index_active(True)
示例5: tearDown
def tearDown(self):
"""
Clean up the test
"""
test_utils.clean_resources_db()
test_utils.clean_storage()
settings.MAX_VIEW_INTERVAL = self.max_view_interval_backup
settings.MAX_DOWNLOAD_INTERVAL = self.max_download_interval_backup
示例6: tearDown
def tearDown(self):
"""
Clean up the test
"""
try:
test_utils.clean_resources_db()
except:
pass
test_utils.clean_storage()
示例7: tearDownClass
def tearDownClass(cls):
"""
Clean up the test
"""
LOGGER.info("finished '{}' tests".format(cls.__name__))
# disable indexing during import
test_utils.set_index_active(False)
test_utils.clean_resources_db()
test_utils.clean_storage()
OBJECT_XML_CACHE.clear()
# enable indexing
test_utils.set_index_active(True)
# update index
update_index.Command().handle(using=[settings.TEST_MODE_NAME,])
示例8: tearDownClass
def tearDownClass(cls):
"""
Clean up the test
"""
LOGGER.info("finished '{}' tests".format(cls.__name__))
# disable indexing during import
test_utils.set_index_active(False)
test_utils.clean_resources_db()
test_utils.clean_storage()
OBJECT_XML_CACHE.clear()
# enable indexing
test_utils.set_index_active(True)
# update index
from django.core.management import call_command
call_command('rebuild_index', interactive=False, using=TEST_MODE_NAME)
示例9: tearDownClass
def tearDownClass(cls):
# delete content of storage folder
test_utils.clean_storage()
test_utils.set_index_active(True)
LOGGER.info("finished '{}' tests".format(cls.__name__))
示例10: tearDown
def tearDown(self):
test_utils.clean_resources_db()
test_utils.clean_storage()
test_utils.clean_user_db()
super(ExampleSeleniumTest, self).tearDown()
示例11: tearDownClass
def tearDownClass(cls):
test_utils.clean_resources_db()
test_utils.clean_storage()
test_utils.clean_user_db()
set_index_active(True)
LOGGER.info("finished '{}' tests".format(cls.__name__))