Title: bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable by blhsing · Pull Request #15565 · python/cpython · GitHub
Open Graph Title: bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable by blhsing · Pull Request #15565 · python/cpython
X Title: bpo-37972: unittest.mock._Call now passes on __getitem__ to the __getattr__ chaining so that call() can be subscriptable by blhsing · Pull Request #15565 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: As reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code: from unittest.mock import MagicMock, call mm = Magi...
X Description: As reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code: from unittest.mock import MagicMock, call mm = Magi...
Opengraph URL: https://github.com/python/cpython/pull/15565
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:6f726fc0-b073-f365-7bf2-51038e5c1405 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C740:299675:AC8E2C:EC4B0D:6A55B4BB |
| html-safe-nonce | 70aa0ab1a2dd8774b6c7687174e16b09343e050cd1e8d9f344e8c9e6fd8a72d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzQwOjI5OTY3NTpBQzhFMkM6RUM0QjBEOjZBNTVCNEJCIiwidmlzaXRvcl9pZCI6IjUwNDU2NjUzNjMxMDQ2OTgxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0688fb286f5c5d56f1902d329792e1750548eb9545aa90cfff491d2d9fdf82c1 |
| hovercard-subject-tag | pull_request:312039820 |
| 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/15565/commits |
| twitter:image | https://opengraph.githubassets.com/12bab1f9b8adb012ceb009fb82af2d21969e011faa48a4766ce3c95fad03fcda/python/cpython/pull/15565 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12bab1f9b8adb012ceb009fb82af2d21969e011faa48a4766ce3c95fad03fcda/python/cpython/pull/15565 |
| og:image:alt | As reported on StackOverflow: https://stackoverflow.com/questions/57636747/how-to-perform-assert-has-calls-for-a-getitem-call The following code: from unittest.mock import MagicMock, call mm = Magi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blhsing |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653fccf1e27344851c0d3de3fa6faa526197f072 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width