summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2013-02-02 18:22:40 -0800
committerJulien Phalip <jphalip@gmail.com>2013-02-02 18:22:40 -0800
commit293f7a21147ad94c92c7d5b3f33cbab2f87b001b (patch)
tree43e1539dbf406d29782c5fffe85db25a3945ac24 /docs
parent08dc90bccf7c4ffa8b04064d74b54c1150af5ff9 (diff)
Fixed #17797 -- Enabled support for PATCH requests in the dummy test client. Thanks to pfarmer for the suggestion and initial patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/overview.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index 5739061dd1..3b2babd302 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -633,6 +633,14 @@ Use the ``django.test.client.Client`` class to make requests.
The ``follow`` and ``extra`` arguments act the same as for
:meth:`Client.get`.
+ .. method:: Client.patch(path, data='', content_type='application/octet-stream', follow=False, **extra)
+
+ Makes a PATCH request on the provided ``path`` and returns a
+ ``Response`` object. Useful for testing RESTful interfaces.
+
+ The ``follow`` and ``extra`` arguments act the same as for
+ :meth:`Client.get`.
+
.. method:: Client.delete(path, data='', content_type='application/octet-stream', follow=False, **extra)
Makes an DELETE request on the provided ``path`` and returns a