__init__.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:pyaptly 作者: adfinis-sygroup 项目源码 文件源码
def init_hypothesis():
    """Initialize hypothesis profile if hypothesis is available"""
    try:  # pragma: no cover:w
        if b'HYPOTHESIS_PROFILE' in environb:
            from hypothesis import Settings
            Settings.register_profile("ci", Settings(
                max_examples=10000
            ))
            Settings.load_profile(os.getenv(u'HYPOTHESIS_PROFILE', 'default'))
    except (ImportError, AttributeError):  # pragma: no cover
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号