If `required=False` then a field may be omitted from the input.
(self)
| 141 | assert exc_info.value.detail == ['This field is required.'] |
| 142 | |
| 143 | def test_not_required(self): |
| 144 | """ |
| 145 | If `required=False` then a field may be omitted from the input. |
| 146 | """ |
| 147 | field = serializers.IntegerField(required=False) |
| 148 | with pytest.raises(serializers.SkipField): |
| 149 | field.run_validation() |
| 150 | |
| 151 | def test_disallow_null(self): |
| 152 | """ |
nothing calls this directly
no test coverage detected