Lines Matching full:patched
1350 def decoration_helper(self, patched, args, keywargs): argument
1353 for patching in patched.patchings:
1371 def patched(*args, **keywargs): function
1372 with self.decoration_helper(patched,
1377 patched.patchings = [self]
1378 return patched
1388 async def patched(*args, **keywargs): function
1389 with self.decoration_helper(patched,
1394 patched.patchings = [self]
1395 return patched
1637 f"{target!r} must be the actual object to be patched, not a str"
1649 patched (either as an object or a string to fetch the object by importing)
1702 is patched with a `new` object. When the function/with statement exits
1706 `AsyncMock if the patched object is an async function or a
1741 create the attribute for you when the patched function is called, and
1756 use "as" then the patched object will be bound to the name after the
1764 `AsyncMock` if the patched object is asynchronous, to `MagicMock`