schrodinger.test.hypothesis.hypothesis_profiles module

schrodinger.test.hypothesis.hypothesis_profiles.register_profiles()[source]

Registers hypothesis profiles

# See http://hypothesis.readthedocs.io/en/latest/settings.html for details

Any profile added here will be available to py.test’s –hypothesis-profile option

Without any profile, Hypothesis will default to the following values:

max_examples = 200 stateful_step_count = 50

and will perform health checks by default.

As a general rule, developers should use the “dev” profile when running a subset of tests as part of the development process and the “stress” profile when they want to smoke out especially tricky bugs (or in stu tests). Buildbot and the regular unittest process will use the “unittest” profile, which is very lightweight compared to the others.