summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-01-11 11:12:53 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-01-11 11:12:53 +0100
commit8760dc1b17dcf06f7253a9ce7ac7a15af0785492 (patch)
tree1e7f77392038a667ff4bbf41819bcbfb2c5ba13b /tests/conftest.py
parent09d28f54ae275bd40b9cf718933406326d5c6557 (diff)
downloadqutebrowser-8760dc1b17dcf06f7253a9ce7ac7a15af0785492.tar.gz
qutebrowser-8760dc1b17dcf06f7253a9ce7ac7a15af0785492.zip
tests: Disable hypothesis fixture health checks
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index fd317d6c4..524325595 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -49,11 +49,20 @@ _qute_scheme_handler = None
# Set hypothesis settings
hypothesis.settings.register_profile(
- 'default', hypothesis.settings(deadline=600))
+ 'default', hypothesis.settings(
+ deadline=600,
+ suppress_health_check=[hypothesis.HealthCheck.function_scoped_fixture],
+ )
+)
hypothesis.settings.register_profile(
'ci', hypothesis.settings(
deadline=None,
- suppress_health_check=[hypothesis.HealthCheck.too_slow]))
+ suppress_health_check=[
+ hypothesis.HealthCheck.function_scoped_fixture,
+ hypothesis.HealthCheck.too_slow,
+ ]
+ )
+)
hypothesis.settings.load_profile('ci' if testutils.ON_CI else 'default')