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
- Django order_by a property
- How to create custom groups in django from group
- Django's {{ csrf_token }} is outputting the token value only, without the hidden input markup
- Django – How to show messages under ajax function
Source:stackexchange.com