[Fixed]-Using APITestCase with django-rest-framework

22👍

This GIT repo has several working examples, which I was able to follow and get APITestCase working:

django-rest-framework-oauth2-provider-example/apps/users/tests.py

1👍

It could be a JSON decode error.

In the line self.client.post(url, data, format='json') use json.dumps(data) and try.

👤Faiz

Leave a comment