MCPcopy
hub / github.com/django/django / patch

Method patch

django/test/client.py:1632–1665  ·  view source on GitHub ↗

Send a resource to the server using PATCH.

(
        self,
        path,
        data="",
        content_type="application/octet-stream",
        follow=False,
        secure=False,
        *,
        headers=None,
        query_params=None,
        **extra,
    )

Source from the content-addressed store, hash-verified

1630 return response
1631
1632 async def patch(
1633 self,
1634 path,
1635 data="",
1636 content_type="application/octet-stream",
1637 follow=False,
1638 secure=False,
1639 *,
1640 headers=None,
1641 query_params=None,
1642 **extra,
1643 ):
1644 """Send a resource to the server using PATCH."""
1645 self.extra = extra
1646 self.headers = headers
1647 response = await super().patch(
1648 path,
1649 data=data,
1650 content_type=content_type,
1651 secure=secure,
1652 headers=headers,
1653 query_params=query_params,
1654 **extra,
1655 )
1656 if follow:
1657 response = await self._ahandle_redirects(
1658 response,
1659 data=data,
1660 content_type=content_type,
1661 headers=headers,
1662 query_params=query_params,
1663 **extra,
1664 )
1665 return response
1666
1667 async def delete(
1668 self,

Callers

nothing calls this directly

Calls 2

_ahandle_redirectsMethod · 0.95
patchMethod · 0.45

Tested by

no test coverage detected