mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-24 10:32:52 +03:00
pre-commit applied
This commit is contained in:
parent
3a513bccb4
commit
6e828f8457
|
|
@ -752,7 +752,7 @@ class TestUniqueConstraintValidation(TestCase):
|
|||
|
||||
validators = serializer.fields['fancy_conditions'].validators
|
||||
assert len(validators) == 2 + extra_validators_qty
|
||||
ids_in_qs = {frozenset(v.queryset.values_list('id',flat=True)) for v in validators if hasattr(v, "queryset")}
|
||||
ids_in_qs = {frozenset(v.queryset.values_list('id', flat=True)) for v in validators if hasattr(v, "queryset")}
|
||||
assert ids_in_qs == {frozenset([1]), frozenset([3])}
|
||||
|
||||
def test_nullable_unique_constraint_fields_are_not_required(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user