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
评论列表
文章目录