forked from ibis-project/ibis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conftest.py
32 lines (28 loc) · 829 Bytes
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from __future__ import annotations
import os
import hypothesis as h
# setup hypothesis profiles
h.settings.register_profile(
"ci",
max_examples=1000,
suppress_health_check=[h.HealthCheck.too_slow],
deadline=None,
)
h.settings.register_profile(
"dev",
max_examples=50,
suppress_health_check=[h.HealthCheck.too_slow],
deadline=None,
)
h.settings.register_profile(
"debug",
max_examples=10,
verbosity=h.Verbosity.verbose,
suppress_health_check=[h.HealthCheck.too_slow],
deadline=None,
)
# load default hypothesis profile, either set HYPOTHESIS_PROFILE environment
# variable or pass --hypothesis-profile option to pytest, to see the generated
# examples try:
# pytest pyarrow -sv --hypothesis-profile=debug
h.settings.load_profile(os.environ.get("HYPOTHESIS_PROFILE", "dev"))