You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very nice to use the JSONRenderer as default request renderer in tests. In latest release it will break because it does not have any renderer context. So by supporting this a test could look something like this:
client=APIClient()
response=client.patch(
'/api/companies/1'
{'name': 'A new company name'},
format='vnd.api+json'
)
assertresponse.status_code==status.HTTP_200_OK
Then we don't have to build the payload for data in correct JSON API spec 1.0. The renderer does that for us.
The text was updated successfully, but these errors were encountered:
It would be very nice to use the
JSONRenderer
as default request renderer in tests. In latest release it will break because it does not have any renderer context. So by supporting this a test could look something like this:Then we don't have to build the payload for data in correct JSON API spec 1.0. The renderer does that for us.
The text was updated successfully, but these errors were encountered: