• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python config.clear函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pylons.config.clear函数的典型用法代码示例。如果您正苦于以下问题:Python clear函数的具体用法?Python clear怎么用?Python clear使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了clear函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: teardown_class

    def teardown_class(cls):
        helpers.reset_db()
        model.repo.rebuild_db()
        ckan.lib.search.clear_all()

        config.clear()
        config.update(cls.original_config)
开发者ID:6779660,项目名称:ckan,代码行数:7,代码来源:test_example_idatasetform.py


示例2: teardown_class

    def teardown_class(cls):
        config.clear()
        config.update(cls._original_config)
        new_authz.clear_auth_functions_cache()
        PylonsTestCase.teardown_class()

        model.repo.rebuild_db()
开发者ID:1sha1,项目名称:ckan,代码行数:7,代码来源:test_user.py


示例3: teardown_class

 def teardown_class(cls):
     config.clear()
     config.update(cls._original_config)
     model.repo.rebuild_db()
     # Reenable Solr indexing
     if (sys.version_info[0] == 2 and sys.version_info[1] == 6
             and not p.plugin_loaded('synchronous_search')):
         p.load('synchronous_search')
开发者ID:HatemAlSum,项目名称:ckan,代码行数:8,代码来源:test_proxy.py


示例4: wrapper

        def wrapper(*args, **kwargs):
            _original_config = config.copy()
            config[key] = value

            return_value = func(*args, **kwargs)

            config.clear()
            config.update(_original_config)

            return return_value
开发者ID:AAEMCJALBERT,项目名称:ckan,代码行数:10,代码来源:helpers.py


示例5: wrapper

        def wrapper(*args, **kwargs):
            _original_config = config.copy()
            config[key] = value
            new_authz.clear_auth_functions_cache()

            return_value = func(*args, **kwargs)

            config.clear()
            config.update(_original_config)
            new_authz.clear_auth_functions_cache()

            return return_value
开发者ID:BigOpenData,项目名称:ckan,代码行数:12,代码来源:helpers.py


示例6: test_profiles_via_config_option

    def test_profiles_via_config_option(self):

        original_config = config.copy()

        config[RDF_PROFILES_CONFIG_OPTION] = 'profile_conf_1 profile_conf_2'
        try:
            RDFParser()
        except RDFProfileException as e:

            eq_(str(e), 'Unknown RDF profiles: profile_conf_1, profile_conf_2')

        config.clear()
        config.update(original_config)
开发者ID:AQUACROSS,项目名称:ckanext-dcat,代码行数:13,代码来源:test_base_parser.py


示例7: teardown_class

    def teardown_class(cls):
        config.clear()
        config.update(cls._original_config)
        PylonsTestCase.teardown_class()

        model.repo.rebuild_db()
开发者ID:6779660,项目名称:ckan,代码行数:6,代码来源:test_user.py


示例8: teardown_class

 def teardown_class(cls):
     config.clear()
     config.update(cls._original_config)
     model.repo.rebuild_db()
开发者ID:1sha1,项目名称:ckan,代码行数:4,代码来源:test_proxy.py


示例9: teardown_class

 def teardown_class(cls):
     # Restore the Pylons config to its original values, in case any tests
     # changed any config settings.
     config.clear()
     config.update(cls._original_config)
开发者ID:AAEMCJALBERT,项目名称:ckan,代码行数:5,代码来源:helpers.py


示例10: teardown_class

 def teardown_class(cls):
     config.clear()
     config.update(cls._original_config)
     CreateTestData.delete()
开发者ID:Accela-Inc,项目名称:ckan,代码行数:4,代码来源:test_storage.py


示例11: teardown_class

 def teardown_class(cls):
     config.clear()
     config.update(cls._original_config)
     plugins.reset()
     create_test_data.CreateTestData.delete()
开发者ID:OpenData-TW,项目名称:ckan,代码行数:5,代码来源:test_preview.py


示例12: teardown_class

 def teardown_class(self):
     config.clear()
     config.update(self._original_config)
     mock_mail_server.SmtpServerHarness.teardown_class()
     pylons_controller.PylonsTestCase.teardown_class()
     model.repo.rebuild_db()
开发者ID:1sha1,项目名称:ckan,代码行数:6,代码来源:test_email_notifications.py


示例13: teardown_class

 def teardown_class(cls):
     helpers.rebuild_all_dbs(cls.Session)
     p.unload('datastore')
     config.clear()
     config.update(cls._original_config)
开发者ID:Hosting-Scripts,项目名称:ckan,代码行数:5,代码来源:test_dump.py


示例14: teardown_class

    def teardown_class(cls):
        model.Session.remove()
        model.repo.rebuild_db()

        config.clear()
        config.update(cls.original_config)
开发者ID:aalecs,项目名称:hdx-ckan-ci,代码行数:6,代码来源:hdx_test_base.py



注:本文中的pylons.config.clear函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python config.copy函数代码示例发布时间:2022-05-25
下一篇:
Python cache.get_cache函数代码示例发布时间:2022-05-25
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap