Skip to content

Commit

Permalink
Testing: Use hypothesis setting load_profile to setup health check
Browse files Browse the repository at this point in the history
Since Hypothesis 3.72.0, assigning settings attributes throws an error.

See: HypothesisWorks/hypothesis#1572
  • Loading branch information
marsam committed Nov 30, 2018
1 parent ac45cf1 commit 22ad88a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def benchmark():
del pytest_benchmark


settings.suppress_health_check = [HealthCheck.too_slow]
settings.register_profile("dev", settings(
suppress_health_check=[HealthCheck.too_slow]
))
settings.load_profile("dev")

settings.register_profile("ci", settings(
max_examples=1000,
Expand Down

0 comments on commit 22ad88a

Please sign in to comment.