Title: docs: Add references to AsyncMock in unittest.mock.patch by mariocj89 · Pull Request #13681 · python/cpython · GitHub
Open Graph Title: docs: Add references to AsyncMock in unittest.mock.patch by mariocj89 · Pull Request #13681 · python/cpython
X Title: docs: Add references to AsyncMock in unittest.mock.patch by mariocj89 · Pull Request #13681 · python/cpython
Description: Update the docs as patch can now return an AsyncMock if the patched object is an async function. Just noticed this, happy to create a bug report & news entry but not sure if it is worth it. CC: @lisroach @tirkarthi @cjw296 Relates-to: #9296
Open Graph Description: Update the docs as patch can now return an AsyncMock if the patched object is an async function. Just noticed this, happy to create a bug report & news entry but not sure if it is worth it. CC:...
X Description: Update the docs as patch can now return an AsyncMock if the patched object is an async function. Just noticed this, happy to create a bug report & news entry but not sure if it is worth it....
Opengraph URL: https://github.com/python/cpython/pull/13681
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:913bce06-9b23-4f9f-383b-17381031794d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9CB4:281585:C3C71E:1120B69:696A366D |
| html-safe-nonce | c7f839a1706af4b8d9c01dc1ba664fc6095feba26257e614101e52ead91b2212 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0I0OjI4MTU4NTpDM0M3MUU6MTEyMEI2OTo2OTZBMzY2RCIsInZpc2l0b3JfaWQiOiI4NzE4Mzg4Nzg0ODk0OTgxNzQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 42f500c971564dc27263ee85c08eb5f6e2a434964c90a9502430265af374e4d1 |
| hovercard-subject-tag | pull_request:283659141 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/13681/files |
| twitter:image | https://avatars.githubusercontent.com/u/3709683?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3709683?s=400&v=4 |
| og:image:alt | Update the docs as patch can now return an AsyncMock if the patched object is an async function. Just noticed this, happy to create a bug report & news entry but not sure if it is worth it. CC:... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width