diff options
author | Maxim Devaev <[email protected]> | 2024-05-13 17:52:04 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-19 15:25:14 +0300 |
commit | 89eb04c14106f6826d85a1e6aa37cb17f5d515ee (patch) | |
tree | c1df2a26b13892fa28660c17627ecae5474a23f4 /testenv/tests/validators/test_basic.py | |
parent | 6facfbbff9f2a5f76a19b07142a449b01d215452 (diff) |
lint fixes
Diffstat (limited to 'testenv/tests/validators/test_basic.py')
-rw-r--r-- | testenv/tests/validators/test_basic.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testenv/tests/validators/test_basic.py b/testenv/tests/validators/test_basic.py index 06d6deec..7551e4bb 100644 --- a/testenv/tests/validators/test_basic.py +++ b/testenv/tests/validators/test_basic.py @@ -86,7 +86,7 @@ def test_fail__valid_number__min_max(arg: Any) -> None: # pylint: disable=inval @pytest.mark.parametrize("arg", [0, 1, 5, "5 "]) def test_ok__valid_int_f0(arg: Any) -> None: value = valid_int_f0(arg) - assert type(value) == int # pylint: disable=unidiomatic-typecheck + assert type(value) is int # pylint: disable=unidiomatic-typecheck assert value == int(str(arg).strip()) @@ -100,7 +100,7 @@ def test_fail__valid_int_f0(arg: Any) -> None: @pytest.mark.parametrize("arg", [1, 5, "5 "]) def test_ok__valid_int_f1(arg: Any) -> None: value = valid_int_f1(arg) - assert type(value) == int # pylint: disable=unidiomatic-typecheck + assert type(value) is int # pylint: disable=unidiomatic-typecheck assert value == int(str(arg).strip()) @@ -114,7 +114,7 @@ def test_fail__valid_int_f1(arg: Any) -> None: @pytest.mark.parametrize("arg", [0, 1, 5, "5 ", "5.0 "]) def test_ok__valid_float_f0(arg: Any) -> None: value = valid_float_f0(arg) - assert type(value) == float # pylint: disable=unidiomatic-typecheck + assert type(value) is float # pylint: disable=unidiomatic-typecheck assert value == float(str(arg).strip()) @@ -128,7 +128,7 @@ def test_fail__valid_float_f0(arg: Any) -> None: @pytest.mark.parametrize("arg", [0.1, 1, 5, "5 ", "5.0 "]) def test_ok__valid_float_f01(arg: Any) -> None: value = valid_float_f01(arg) - assert type(value) == float # pylint: disable=unidiomatic-typecheck + assert type(value) is float # pylint: disable=unidiomatic-typecheck assert value == float(str(arg).strip()) |