0

I've created a view created in Django which accepts both GET and POST parameters. When trying to test it using django-rest-framework test APIClient, it's not clear how I can send both GET and POST parameters.

self.client.post has a signature as follows:

self, path, data=None, format=None, content_type=None,
             follow=False, **extra

Using data would probably send POST data, is there any workarounds for this?

0 Answers0