-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
23 lines (18 loc) · 694 Bytes
/
Copy pathconftest.py
File metadata and controls
23 lines (18 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Shared Hypothesis settings for the test and example suites.
Registers a deterministic profile so CI is stable and fast:
* ``derandomize=True`` — the same inputs every run, so a green run stays green.
* a modest ``deadline`` and suppressed ``too_slow`` health check, so the more
elaborate composite strategies (GeoJSON polygons, REST resources) don't flake
the suite on a slow machine.
"""
from __future__ import annotations
from hypothesis import HealthCheck, settings
settings.register_profile(
"recipes",
max_examples=200,
deadline=None,
derandomize=True,
suppress_health_check=[HealthCheck.too_slow],
print_blob=True,
)
settings.load_profile("recipes")