Commit 12394c9c by Tom Christie

Merge pull request #1608 from dbrgn/test_client_contenttype

Always use specified content type in APIRequestFactory
parents a7ff5111 6cb6bfae
......@@ -36,7 +36,7 @@ class APIRequestFactory(DjangoRequestFactory):
"""
if not data:
return ('', None)
return ('', content_type)
assert format is None or content_type is None, (
'You may not set both `format` and `content_type`.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment