diff options
-rw-r--r-- | tests/test_final_data_transform_factory.py | 3 | ||||
-rw-r--r-- | tests/test_parse_bytes_function.py | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_final_data_transform_factory.py b/tests/test_final_data_transform_factory.py index fb2eb25..e438f3c 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 example, given +from hypothesis import HealthCheck, example, given, settings from hypothesis.strategies import floats, integers, text from natsort.compat.py23 import py23_str from natsort.ns_enum import NS_DUMB, ns @@ -11,6 +11,7 @@ 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 49f54ae..94e00cb 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 given +from hypothesis import HealthCheck, given, settings from hypothesis.strategies import binary from natsort.ns_enum import ns from natsort.utils import parse_bytes_factory @@ -19,7 +19,8 @@ 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_bytest_factory_makes_function_that_returns_tuple(x, alg, example_func): +def test_parse_bytes_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) |