MCPcopy
hub / github.com/aio-libs/aiohttp / test_http_PUT

Function test_http_PUT

tests/test_client_session.py:251–265  ·  view source on GitHub ↗
(session, params)

Source from the content-addressed store, hash-verified

249
250
251def test_http_PUT(session, params) -> None:
252 with mock.patch(
253 "aiohttp.client.ClientSession._request", new_callable=mock.MagicMock
254 ) as patched:
255 session.put(
256 "http://put.example.com", params={"x": 2}, data="Some_data", **params
257 )
258 assert patched.called, "`ClientSession._request` not called"
259 assert list(patched.call_args) == [
260 (
261 "PUT",
262 "http://put.example.com",
263 ),
264 dict(params={"x": 2}, data="Some_data", **params),
265 ]
266
267
268def test_http_PATCH(session, params) -> None:

Callers

nothing calls this directly

Calls 2

patchMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…