-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJWX+WoAAoJEAKbtbtZX7VZ0PsP/1lS7mJaBz1O9nOceDSx6sbY
QG7geSx/swkNOezqAMPRGyWb+YipPyShTsKMi+FSEQd2GSL9AvWJatrM24tCKr0u
eT0my598YXbyS1plVsQYvY6Z2xjz9hJ0G2HtquH84g2YSOvBhR9B1EMGVaqn8ncM
1BoCEBUkLPT1vdf/ft2scrsUUF/sJT1/PKKuAw7i+8PTPRCgWXpUCaMuhxg+uAyR
ZsNvPUpKiYmx7m8PJNLFI2S7Yv+A4zW67enyV4R/StubAMoALOp3Y5PKJXlx1ICJ
4SkpHbsmn5+H9RJ/S2z+hg2izvGWgIml9dDhmAf7elbEgJLr0VyGhfIhJcQb9/AX
IMcDFf5RjhMcPtLBc/9gnta9YHx0WKmN10BfsX1KksddHjXJYfee297dVJcnc70Q
r8ftEXpM+tqqshFF0iphjsXEvwr+HEhlLiaLc8d5GP5+ulZvCxcS/rUkWSq0OAuU
rvQj1tM8b/IFRamlbo2+yFAo+iJG0Jp1UKISl9lCuiTY8r6SWtAYGKwJ0f6Ys45G
Lnb6iu8ZXPg/An4xlpJaeT/SWd+uIdpSEWiRojdOEbbZVAnkqzrU7iEmtc8Gyz0t
4ppyOqeHm/y4jb4tHRGSnksE95h8wm078qxL2aoUKu8MpQn5KlPfnaMM5xbW0B25
ixjXy446w5wJqjJINq8T
=lSLP
-----END PGP SIGNATURE-----
Hi,
> Le 3 déc. 2015 à 00:12, learn django <siddhesh.divekar@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+unsubscribe@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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment