Skip to content

Commit

Permalink
Use hypothesis setting load_profile to setup health check
Browse files Browse the repository at this point in the history
Fixes #779
  • Loading branch information
Hugo Osvaldo Barrera committed Jun 8, 2020
1 parent e5caf67 commit 3037c15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ def benchmark():
derandomize=True,
suppress_health_check=HealthCheck.all(),
))
settings.register_profile("dev", settings(
suppress_health_check=[HealthCheck.too_slow]
))

if os.environ.get('DETERMINISTIC_TESTS', 'false').lower() == 'true':
settings.load_profile("deterministic")
elif os.environ.get('CI', 'false').lower() == 'true':
settings.load_profile("ci")
else:
settings.load_profile("dev")

0 comments on commit 3037c15

Please sign in to comment.