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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c5350faa-d611-9fb9-10ca-055c9c38a484 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C9FC:281234:11C81D:1881E5:696A03BA |
| html-safe-nonce | f21d9df28d31bfc449f845533d97105e473c720731135e51041805f49a114d81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUZDOjI4MTIzNDoxMUM4MUQ6MTg4MUU1OjY5NkEwM0JBIiwidmlzaXRvcl9pZCI6IjkzMzUwMjk3NDUyNjM1ODQ1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f6665228d36e96da53ec247fa9ab36c4ed3068a69262d045c85da7b2f795247 |
| hovercard-subject-tag | pull_request:283659141 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 671c2f67171dbced24284331f3133a613d08c366 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width