Ticket #17797: django-test-client-PATCH-docs.patch

File django-test-client-PATCH-docs.patch, 1.0 KB (added by pfarmer, 13 years ago)

Patch for docs/topics/testing.txt to include Client.patch documentation.

  • docs/topics/testing.txt

     
    835835        and a ``redirect_chain`` attribute will be set in the response object
    836836        containing tuples of the intermediate urls and status codes.
    837837
     838    .. method:: Client.patch(path, data={}, content_type=MULTIPART_CONTENT, follow=False, **extra)
     839
     840        Makes a PATCH request on the provided ``path`` and returns a
     841        ``Response`` object. Useful for testing RESTful interfaces. Acts just
     842        like :meth:`Client.post` except with the PATCH request method.
     843
     844        If you set ``follow`` to ``True`` the client will follow any redirects
     845        and a ``redirect_chain`` attribute will be set in the response object
     846        containing tuples of the intermediate urls and status codes.
     847
    838848    .. method:: Client.delete(path, follow=False, **extra)
    839849
    840850        Makes an DELETE request on the provided ``path`` and returns a
Back to Top