Exemple #1
0
 def test_convert_with_null_input_when_not_nullable(self):
     arg = Argument("foo", nullable=False)
     pytest.raises(ValueError, lambda: arg.convert(None, None))
Exemple #2
0
 def test_convert_default_type_with_null_input(self):
     arg = Argument("foo")
     assert arg.convert(None, None) is None