示例#1
0
 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})
示例#2
0
 def test_max_redirects_validator(self, arg, value):
     config_.HTTPTimeoutSettings(**{arg: value})