Source code

Revision control

Other Tools

1
import platform
2
import os
3
4
from hypothesis import settings, HealthCheck
5
6
impl = platform.python_implementation()
7
8
settings.register_profile("ci", settings(max_examples=1000,
9
deadline=None,
10
suppress_health_check=[HealthCheck.too_slow]))
11
settings.register_profile("pypy", settings(deadline=None,
12
suppress_health_check=[HealthCheck.too_slow]))
13
14
settings.load_profile(os.getenv("HYPOTHESIS_PROFILE",
15
"default" if impl != "PyPy" else "pypy"))