def test_check_non_positive_int1(): a = np.random.randint(-100, 0) assert Validator.check_non_positive_int(a) == a
def test_check_non_positive_int2(): a = np.random.randint(1, 100) with pytest.raises(ValueError): Validator.check_non_positive_int(a)
def test_check_non_positive_int4(): with pytest.raises(TypeError): Validator.check_non_positive_int("str")