django-rest-framework/djangorestframework/tests
Mjumbe Wawatu Poe 9c007a6197 Fix the tests on 1.3 and HEAD
In the latest Django master code, RequestFactory.put behaves fundamentally differently than it did pre-1.5.  By default, it expects an octet string as opposed to a dictionary that it will encode like a multipart form.  So, for 1.5 and on, we have to be explicit about the multipart type and pre-encode the data.  However, pre-1.5 Django expects a dictionary if the content type is multipart.  So, the cleanest thing to do is explicitly handle the versions independently.
2012-09-07 19:14:20 -04:00
..
__init__.py Massive merge 2012-02-25 18:45:17 +00:00
accept.py View -> APIView 2012-09-03 16:54:17 +01:00
authentication.py View -> APIView 2012-09-03 16:54:17 +01:00
breadcrumbs.py View -> APIView 2012-09-03 16:54:17 +01:00
description.py View -> APIView 2012-09-03 16:54:17 +01:00
files.py Drop out resources & mixins 2012-08-24 22:11:00 +01:00
methods.py .DATA, .FILES, overloaded HTTP method, content type and content available directly on the request - see #128 2012-01-22 21:28:34 +02:00
mixins.py Drop out resources & mixins 2012-08-24 22:11:00 +01:00
models.py Docstring/whitespace fixes. 2012-01-18 22:59:30 -05:00
modelviews.py Drop out resources & mixins 2012-08-24 22:11:00 +01:00
oauthentication.py View -> APIView 2012-09-03 16:54:17 +01:00
package.py whitespace fixes 2011-12-29 13:31:12 +00:00
parsers.py Parsers may return raw data, or a DataAndFiles object 2012-09-03 14:28:40 +01:00
renderers.py Add basic serializer tests 2012-09-07 15:14:23 +01:00
request.py Fix the tests on 1.3 and HEAD 2012-09-07 19:14:20 -04:00
response.py View -> APIView 2012-09-03 16:54:17 +01:00
reverse.py View -> APIView 2012-09-03 16:54:17 +01:00
serializer.py Add basic serializer tests 2012-09-07 15:14:23 +01:00
status.py Drop short status codes. 2012-01-21 17:55:25 +00:00
testcases.py whitespace fixes 2011-12-29 13:31:12 +00:00
throttling.py Refactored throttling 2012-09-04 21:58:35 +01:00
validators.py Drop out resources & mixins 2012-08-24 22:11:00 +01:00
views.py Drop out resources & mixins 2012-08-24 22:11:00 +01:00