Example #1
0
def test_fail__valid_number__min_max(arg: Any) -> None:  # pylint: disable=invalid-name
    with pytest.raises(ValidatorError):
        print(valid_number(arg, -5, 5))
Example #2
0
def test_fail__valid_number(arg: Any) -> None:
    with pytest.raises(ValidatorError):
        print(valid_number(arg))
Example #3
0
def test_ok__valid_number__min_max(arg: Any) -> None:
    assert valid_number(arg, -5, 5) == int(str(arg).strip())
Example #4
0
def test_ok__valid_number(arg: Any) -> None:
    assert valid_number(arg) == int(str(arg).strip())