def test_max_redirects_validator_when_negative_float(self, arg): with pytest.raises( ValueError, match= rf"HTTPTimeoutSettings.{arg} must be None, or a POSITIVE float/int" ): config_.HTTPTimeoutSettings(**{arg: -1.1})
def test_max_redirects_validator(self, arg, value): config_.HTTPTimeoutSettings(**{arg: value})