summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2019-11-09 16:53:19 -0800
committerSeth Morton <seth.m.morton@gmail.com>2019-11-09 16:53:19 -0800
commit43927833d1dd9491858bb46986668a5649dc3258 (patch)
tree46b511da4c0818e05ab47eb7a502cac9eda75885 /tests
parentaf9e242433a0df387ba0ae5b123f9f590aefbd46 (diff)
downloadnatsort-43927833d1dd9491858bb46986668a5649dc3258.tar.gz
Revert "Disabled hypothesis HealthCheck on certain tests"
This reverts commit af9e242433a0df387ba0ae5b123f9f590aefbd46.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_final_data_transform_factory.py3
-rw-r--r--tests/test_parse_bytes_function.py5
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/test_final_data_transform_factory.py b/tests/test_final_data_transform_factory.py
index e438f3c..fb2eb25 100644
--- a/tests/test_final_data_transform_factory.py
+++ b/tests/test_final_data_transform_factory.py
@@ -3,7 +3,7 @@
from __future__ import unicode_literals
import pytest
-from hypothesis import HealthCheck, example, given, settings
+from hypothesis import example, given
from hypothesis.strategies import floats, integers, text
from natsort.compat.py23 import py23_str
from natsort.ns_enum import NS_DUMB, ns
@@ -11,7 +11,6 @@ from natsort.utils import final_data_transform_factory
@pytest.mark.parametrize("alg", [ns.DEFAULT, ns.UNGROUPLETTERS, ns.LOCALE])
-@settings(suppress_health_check=[HealthCheck.too_slow])
@given(x=text(), y=floats(allow_nan=False, allow_infinity=False) | integers())
@pytest.mark.usefixtures("with_locale_en_us")
def test_final_data_transform_factory_default(x, y, alg):
diff --git a/tests/test_parse_bytes_function.py b/tests/test_parse_bytes_function.py
index 94e00cb..49f54ae 100644
--- a/tests/test_parse_bytes_function.py
+++ b/tests/test_parse_bytes_function.py
@@ -3,7 +3,7 @@
from __future__ import unicode_literals
import pytest
-from hypothesis import HealthCheck, given, settings
+from hypothesis import given
from hypothesis.strategies import binary
from natsort.ns_enum import ns
from natsort.utils import parse_bytes_factory
@@ -19,8 +19,7 @@ from natsort.utils import parse_bytes_factory
(ns.PATH | ns.IGNORECASE, lambda x: ((x.lower(),),)),
],
)
-@settings(suppress_health_check=[HealthCheck.too_slow])
@given(x=binary())
-def test_parse_bytes_factory_makes_function_that_returns_tuple(x, alg, example_func):
+def test_parse_bytest_factory_makes_function_that_returns_tuple(x, alg, example_func):
parse_bytes_func = parse_bytes_factory(alg)
assert parse_bytes_func(x) == example_func(x)