From 293f7a21147ad94c92c7d5b3f33cbab2f87b001b Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Sat, 2 Feb 2013 18:22:40 -0800 Subject: Fixed #17797 -- Enabled support for PATCH requests in the dummy test client. Thanks to pfarmer for the suggestion and initial patch. --- docs/topics/testing/overview.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') 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 -- cgit v1.3