Disable HealthCheck.too_slow in CI.

This commit is contained in:
Wilfredo Sánchez 2019-11-06 16:42:28 -08:00
parent dce56a7f6d
commit c7509785af
2 changed files with 23 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Jean Paul Calderone
Adi Roiban
Amber Hawkie Brown
Mahmoud Hashemi
Wilfredo Sanchez Vega
and others that have contributed code to the public domain.

View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
"""
Tests for hyperlink
"""
__all = ()
def _init_hypothesis():
# type: () -> None
from os import environ
if "CI" in environ:
from hypothesis import HealthCheck, settings
settings.register_profile(
"patience", settings(suppress_health_check=[HealthCheck.too_slow])
)
settings.load_profile("patience")
_init_hypothesis()