Commit c1c561ee authored by René Fritze's avatar René Fritze Committed by René Fritze

[test] refactor hypothesis profiles

and rais the default deadline by 5x. Lower limit resultet in flaky tests
where deadline had passed in 1st call, but ont on repeats
parent 9495de54
......@@ -8,13 +8,12 @@ import os
from csv import DictWriter
from hypothesis import settings, Verbosity, HealthCheck
settings.register_profile("ci_large", max_examples=5000,print_blob=True,
suppress_health_check=(HealthCheck.too_slow, HealthCheck.data_too_large,))
settings.register_profile("ci", max_examples=100,verbosity=Verbosity.verbose,print_blob=True,
suppress_health_check=(HealthCheck.too_slow, HealthCheck.data_too_large,))
settings.register_profile("dev", max_examples=10,print_blob=True,
suppress_health_check=(HealthCheck.too_slow, HealthCheck.data_too_large,))
settings.register_profile("debug", max_examples=10, print_blob=True, verbosity=Verbosity.verbose)
_common_settings = {"print_blob": True, "suppress_health_check": (HealthCheck.too_slow, HealthCheck.data_too_large,),
"deadline": 1000, "verbosity": Verbosity.verbose}
settings.register_profile("ci_large", max_examples=5000, **_common_settings)
settings.register_profile("ci", max_examples=100, **_common_settings)
settings.register_profile("dev", max_examples=10, **_common_settings)
settings.register_profile("debug", max_examples=10, **_common_settings)
settings.load_profile(os.getenv(u'PYMOR_HYPOTHESIS_PROFILE', 'dev'))
class ExecutionTimeCSV:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment