Remove the ci Hypothesis profile

It is slow and there's no real benefit from it at this time.
This commit is contained in:
Correl Roush 2020-12-04 23:34:57 -05:00
parent 3de1f9c430
commit b69f690d50
2 changed files with 6 additions and 11 deletions

View file

@ -121,21 +121,18 @@ Configuring Hypothesis
Many of the tests make use of `Hypothesis`_ to specify their expectations and
generate a large volume of randomized test input. Because of this, the tests may
take a long time to run on slower computers. Three profiles are defined for
take a long time to run on slower computers. Two profiles are defined for
Hypothesis to use which can be selected by setting the ``HYPOTHESIS_PROFILE``
environment variable to one of the following values:
``default``
Runs tests using the default Hypothesis settings (100 examples per test with a
default completion deadline)
Runs tests using the default Hypothesis settings (100 examples per test) and
no completion deadline.
``dev``
The fastest profile, meant for local development only. Uses only 10 examples
per test with no completion deadline.
``ci``
The slowest profile, used for automated testing. Uses 1000 examples per test,
with the default completion deadline.
.. _Black: https://github.com/psf/black
.. _Flake8: https://flake8.pycqa.org/

View file

@ -2,8 +2,6 @@ import os
from hypothesis import settings
settings.register_profile("dev", deadline=None, max_examples=10)
settings.register_profile("ci", max_examples=1000)
settings.load_profile(
os.getenv("HYPOTHESIS_PROFILE", "ci" if os.getenv("CI") else "default")
)
settings(deadline=None)
settings.register_profile("dev", max_examples=10)
settings.load_profile(os.getenv("HYPOTHESIS_PROFILE", "default"))