diff --git a/README.rst b/README.rst index df8e905..aea1b13 100644 --- a/README.rst +++ b/README.rst @@ -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/ diff --git a/tests/conftest.py b/tests/conftest.py index eee3fc8..80759b3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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"))