Disable HealthCheck.too_slow in CI.
This commit is contained in:
parent
dce56a7f6d
commit
c7509785af
1
LICENSE
1
LICENSE
|
@ -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.
|
||||
|
||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue