Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Dec 19, 2024
1 parent 81c97ea commit f4de057
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/validators/test_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def test_length_messages(dummy_form, dummy_field, validator, message):

assert message in str(e.value)


@pytest.mark.parametrize("min_v, max_v", [(-1, 5)])
def test_null_str_pass(min_v, max_v, dummy_form, dummy_field):
"""
Expand All @@ -68,6 +69,7 @@ def test_null_str_pass(min_v, max_v, dummy_form, dummy_field):
validator = length(min_v, max_v)
validator(dummy_form, dummy_field)


@pytest.mark.parametrize("min_v, max_v", [(0, 5), (0, -1)])
def test_null_str_fail(min_v, max_v, dummy_form, dummy_field):
"""
Expand All @@ -79,6 +81,7 @@ def test_null_str_fail(min_v, max_v, dummy_form, dummy_field):
with pytest.raises(ValidationError):
validator(dummy_form, dummy_field)


@pytest.mark.parametrize("min_v, max_v", [(0, 5), (0, -1)])
def test_empty_str_pass(min_v, max_v, dummy_form, dummy_field):
"""
Expand Down

0 comments on commit f4de057

Please sign in to comment.