diff options
author | Seth M Morton <seth.m.morton@gmail.com> | 2018-09-02 23:43:38 -0700 |
---|---|---|
committer | Seth M Morton <seth.m.morton@gmail.com> | 2018-09-02 23:43:38 -0700 |
commit | c749c7991cb72bdd4625c78a4cd31356f77d535c (patch) | |
tree | f442879ea07eee8da73f8bc0b63f5a48dcbb04d5 | |
parent | 478cc5b88984b572e86421e6567e8b425e3d039e (diff) | |
download | natsort-clarify-code-and-simplify-tests.tar.gz |
Fix final transform tests.clarify-code-and-simplify-tests
-rw-r--r-- | test_natsort/test_final_data_transform_factory.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test_natsort/test_final_data_transform_factory.py b/test_natsort/test_final_data_transform_factory.py index d256e30..83f1648 100644 --- a/test_natsort/test_final_data_transform_factory.py +++ b/test_natsort/test_final_data_transform_factory.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import pytest -from hypothesis import given +from hypothesis import given, example from hypothesis.strategies import floats, integers, text from natsort.compat.py23 import py23_str from natsort.ns_enum import ns, ns_DUMB @@ -34,6 +34,7 @@ def test_final_data_transform_factory_default(x, y, alg): ], ) @given(x=text(), y=floats(allow_nan=False, allow_infinity=False) | integers()) +@example(x="İ", y=0) @pytest.mark.usefixtures("with_locale_en_us") def test_final_data_transform_factory_ungroup_and_locale(x, y, alg, func): final_data_transform_func = final_data_transform_factory(alg, "", "::") @@ -41,7 +42,7 @@ def test_final_data_transform_factory_ungroup_and_locale(x, y, alg, func): original_value = "".join(map(py23_str, value)) result = final_data_transform_func(value, original_value) if x: - expected = (tuple(func(original_value[:1])), value) + expected = ((func(original_value[:1]),), value) else: expected = (("::",), value) assert result == expected |