django-rest-framework/tests
Reupen Shah b45ff07294 Use an array type for list view response schemas
This is the first part of #6846.

Previously, the response schema for list views was an object representing a single item. However, list views return a list of items, and hence it should be an array.

Further work will need to be done to support how pagination classes modify list responses.

There should be no change for views not determined to be list views.
2019-08-07 20:40:22 +02: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 Use an array type for list view response schemas 2019-08-07 20:40:22 +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 JSONEncoder: ensure empty listlikes remain lists, not dicts (#6794) 2019-07-09 11:41:05 +01: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 Fix ModelField max_length argument (#6773) 2019-07-01 19:14:45 -07:00
test_filters.py Strip null characters from search param (#6774) 2019-07-02 11:33:48 -07: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 Fix typos (#6835) 2019-07-25 10:04:01 -07: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 Don't render extra actions when unauthenticated (#6775) 2019-07-04 14:54:16 +01: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 Fix dotted-source field checking on serializer write (#6786) 2019-07-08 11:10:18 +01: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 Fix typos (#6835) 2019-07-25 10:04:01 -07: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 Fix typos (#6835) 2019-07-25 10:04:01 -07: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