'''
General-purpose fixtures for vdirsyncer's testsuite.
'''
import logging
import os

import click_log

from hypothesis import HealthCheck, Verbosity, settings

import pytest


@pytest.fixture(autouse=True)
def setup_logging():
    click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG)


try:
    import pytest_benchmark
except ImportError:
    @pytest.fixture
    def benchmark():
        return lambda x: x()
else:
    del pytest_benchmark


settings.register_profile("ci", settings(
    max_examples=1000,
    verbosity=Verbosity.verbose,
    suppress_health_check=[HealthCheck.too_slow],
))
settings.register_profile("deterministic", settings(
    derandomize=True,
    suppress_health_check=HealthCheck.all(),
))

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")

@@ -718,16 +718,111 @@
 ll(),%0A))
+%0Asettings.register_profile(%22dev%22, settings(%0A    suppress_health_check=%5BHealthCheck.too_slow%5D%0A))
 %0A%0Aif os.
@@ -1013,8 +1013,47 @@
 e(%22ci%22)%0A
+else:%0A    settings.load_profile(%22dev%22)%0A

Use hypothesis setting load_profile to setup health check