Hi, > Le 3 déc. 2015 à 00:12, learn django <siddhesh.dive...@gmail.com> a écrit : > > My app uses rest framework. > I am writing test cases which involve standard requests like > GET/POST/DELETE/PUT. > What is the best approach to write the test cases ?
Django REST framework comes with a test client named APIClient. It will go through the middleware and urls before calling your API entry points which seems to be what you’re looking for. The documentation about it is available at http://www.django-rest-framework.org/api-guide/testing/#apiclient Regards, Xavier, Linovia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/C9F5286E-8261-47C3-8F0C-959EBF267E49%40linovia.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Message signed with OpenPGP using GPGMail