def test_unique_together_is_required(self):
        data = {'position': 2}
        serializer = UniquenessTogetherSerializer(data=data, partial=True)
        assert not serializer.is_valid()
        assert serializer.errors == {
            'race_name': ['This field is required.']
        }
In a unique together validation, all fields are required.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validators.py/TestUniquenessTogetherValidation.test_unique_together_is_required