django-rest-framework/tests
Reupen Shah 3242adf058 Enforce allow_empty=False during partial validation of parent serializer (#6512)
Refs #6509

This enforces allow_empty=True when a ListSerializer is a child of another serializer and partial validation is being performed on the parent serializer.

This is because partial validation should allow fields to be omitted, but should not cause values that are invalid without partial validation to become valid.

This effectively reverts #4222. None of the tests added in that PR fail if the associated change is removed, so I‘m not sure what that PR was trying to fix.
2019-07-01 13:30:16 +01:00
..
authentication Update pytest (#6768) 2019-06-30 19:08:52 -07:00
browsable_api Drop default 'utf-8' to .encode()/.decode() (#6633) 2019-05-01 07:49:16 +02:00
generic_relations Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
importable Fix lazy translation of ListField errors (#6708) 2019-05-22 19:41:53 -07:00
schemas Add --generator_class CLI option to generateschema (#6735) 2019-06-09 14:43:54 +02:00
__init__.py Support for running the test suite with py.test 2014-03-02 12:40:30 +01:00
conftest.py Add migration for generic relations Tag model. 2019-02-14 15:57:20 +01:00
models.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
test_api_client.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_atomic_requests.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_authtoken.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_bound_fields.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_decorators.py Remove 3.10 deprecations (#6687) 2019-05-21 10:36:55 -07:00
test_description.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_encoders.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_exceptions.py Replace all usage ugettext functions with the non-u versions (#6634) 2019-05-01 07:49:54 +02:00
test_fields.py [fields] Format error message only if params exist (#6624) 2019-07-01 13:28:16 +01:00
test_filters.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_generics.py Drop default 'utf-8' to .encode()/.decode() (#6633) 2019-05-01 07:49:16 +02:00
test_htmlrenderer.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_lazy_hyperlinks.py Lazy hyperlink names (#4554) 2016-10-11 12:18:00 +01:00
test_metadata.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_middleware.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_model_serializer.py Fixes #6751 - ModelSerializer fields does not get updated correctly when signals are connected to some fields (#6752) 2019-06-22 09:14:15 +01:00
test_multitable_inheritance.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_negotiation.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_one_to_one_with_inheritance.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_pagination.py Fix CursorPagination when objects get deleted between calls (#6504) (#6593) 2019-05-20 14:41:31 +01:00
test_parsers.py Drop default 'utf-8' to .encode()/.decode() (#6633) 2019-05-01 07:49:16 +02:00
test_permissions.py Remove 3.10 deprecations (#6687) 2019-05-21 10:36:55 -07:00
test_prefetch_related.py Remove Django 1.8 & 1.9 compatibility code (#5481) 2017-10-05 20:41:38 +02:00
test_relations_hyperlink.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_relations_pk.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_relations_slug.py fix wrong assert 2017-01-21 02:25:36 +06:00
test_relations.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_renderers.py Remove unnecessary assignments immediately before a return statement (#6619) 2019-05-01 07:51:54 +02:00
test_request.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_requests_client.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_response.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_reverse.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_routers.py Drop default 'utf-8' to .encode()/.decode() (#6633) 2019-05-01 07:49:16 +02:00
test_serializer_bulk_update.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_serializer_lists.py Enforce allow_empty=False during partial validation of parent serializer (#6512) 2019-07-01 13:30:16 +01:00
test_serializer_nested.py Ensure that html forms (multipart form data) respect optional fields (#5927) 2018-04-20 15:11:52 +02:00
test_serializer.py Fix nullable source='*' fields (#6659) 2019-05-20 14:58:02 -07:00
test_settings.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_status.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_templates.py Drop default 'utf-8' to .encode()/.decode() (#6633) 2019-05-01 07:49:16 +02:00
test_templatetags.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_testing.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_throttling.py Always call all throttling classes on the view when checking throttles (#6711) 2019-05-23 14:42:29 +01:00
test_urlpatterns.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_utils.py Remove duplicate test in tests/test_utils.py (#6736) 2019-06-07 14:45:34 +01:00
test_validation_error.py more pytest style assert (#4719) 2016-11-30 09:48:33 +00:00
test_validation.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_validators.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_versioning.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_views.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
test_viewsets.py Fix action support for ViewSet suffixes (#6081) 2018-10-02 16:22:21 +02:00
test_write_only_fields.py tests: remove some dead code, use assert 0 for never called methods (#5973) 2018-05-08 13:28:46 +01:00
urls.py Add "optionals not required" build (#6047) 2018-06-22 10:16:57 +02:00
utils.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00