def test_not_required(self):
        field = serializers.IntegerField(required=False)
        with pytest.raises(serializers.SkipField):
            field.run_validation()
If `required=False` then a field may be omitted from the input.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_fields.py/TestEmpty.test_not_required