'If `required=False` then a field may be omitted from the input.'

def test_not_required(self):

    field = serializers.IntegerField(required=False)
    with pytest.raises(serializers.SkipField):
        field.run_validation()
