当前位置: 首页>>代码示例>>Python>>正文


Python TConfig.VERIFY_SERVER_CERT方法代码示例

本文整理汇总了Python中tconfig.TConfig.VERIFY_SERVER_CERT方法的典型用法代码示例。如果您正苦于以下问题:Python TConfig.VERIFY_SERVER_CERT方法的具体用法?Python TConfig.VERIFY_SERVER_CERT怎么用?Python TConfig.VERIFY_SERVER_CERT使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在tconfig.TConfig的用法示例。


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

示例1: test_http

# 需要导入模块: from tconfig import TConfig [as 别名]
# 或者: from tconfig.TConfig import VERIFY_SERVER_CERT [as 别名]
 def test_http(client):
     t_config = TConfig()
     t_config.DATA_DIR = os.getcwd()
     t_config.VERIFY_SERVER_CERT = False
     client = Client(t_config, refresh=True, test=True)
     update = client.update_check(client.app_name, '0.0.1')
     assert update is not None
     assert update.app_name == 'jms'
     assert update.download() is True
     assert update.is_downloaded() is True
开发者ID:timeyyy,项目名称:PyUpdater,代码行数:12,代码来源:test_client.py

示例2: test_async_http

# 需要导入模块: from tconfig import TConfig [as 别名]
# 或者: from tconfig.TConfig import VERIFY_SERVER_CERT [as 别名]
 def test_async_http(client):
     t_config = TConfig()
     t_config.DATA_DIR = os.getcwd()
     t_config.VERIFY_SERVER_CERT = False
     client = Client(t_config, refresh=True, test=True)
     update = client.update_check(client.app_name, '0.0.1')
     assert update is not None
     assert update.app_name == 'jms'
     update.download(async=True)
     count = 0
     while count < 61:
         if update.is_downloaded() is True:
             break
         time.sleep(1)
         count += 1
     assert update.is_downloaded() is True
开发者ID:timeyyy,项目名称:PyUpdater,代码行数:18,代码来源:test_client.py

示例3: test_multiple_background_calls

# 需要导入模块: from tconfig import TConfig [as 别名]
# 或者: from tconfig.TConfig import VERIFY_SERVER_CERT [as 别名]
 def test_multiple_background_calls(self, client):
     t_config = TConfig()
     t_config.DATA_DIR = os.getcwd()
     t_config.VERIFY_SERVER_CERT = False
     client = Client(t_config, refresh=True, test=True)
     update = client.update_check(client.app_name, '0.0.1')
     assert update is not None
     assert update.app_name == 'Acme'
     update.download(background=True)
     count = 0
     assert update.download(background=True) is None
     assert update.download() is None
     while count < 61:
         if update.is_downloaded() is True:
             break
         time.sleep(1)
         count += 1
     assert update.is_downloaded() is True
开发者ID:JMSwag,项目名称:PyUpdater,代码行数:20,代码来源:test_client.py


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