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