diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing/overview.txt | 8 |
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 |
