Title: [WIP] bpo-17013: Implement WaitableMock to create Mock objects that can wait until called by tirkarthi · Pull Request #12818 · python/cpython · GitHub
Open Graph Title: [WIP] bpo-17013: Implement WaitableMock to create Mock objects that can wait until called by tirkarthi · Pull Request #12818 · python/cpython
X Title: [WIP] bpo-17013: Implement WaitableMock to create Mock objects that can wait until called by tirkarthi · Pull Request #12818 · python/cpython
Description: This is an initial implementation with preliminary docs and tests to see if it's worthy enough of addition. Some notes : Currently, it doesn't support waiting for calls with keyword arguments. It seems the calls to event object are also recorded in mock_calls . I think these should be filtered out or maybe I am doing something wrong. There is per call event object and per mock object event to track if mock was called with given arguments and to store just mock is called or not. Is there a better way to store this? cc : @mariocj89 https://bugs.python.org/issue17013
Open Graph Description: This is an initial implementation with preliminary docs and tests to see if it's worthy enough of addition. Some notes : Currently, it doesn't support waiting for calls with keyword argume...
X Description: This is an initial implementation with preliminary docs and tests to see if it's worthy enough of addition. Some notes : Currently, it doesn't support waiting for calls with keywor...
Opengraph URL: https://github.com/python/cpython/pull/12818
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:b7c9bd39-9ead-feec-b5c6-a2ade8f68f5b |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 96CA:22DEEF:2705EF4:34C0FB5:696ADDF0 |
| html-safe-nonce | 9dd4f43977f36345a6ac1442d2de6732ca2810239744de6abe150ea6be9ac323 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkNBOjIyREVFRjoyNzA1RUY0OjM0QzBGQjU6Njk2QURERjAiLCJ2aXNpdG9yX2lkIjoiNzg2NDMxNjE5NDI4MDEwMzQwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0041d56bc5934be366486b448e8fbf1aa71b25f817c4ca48d7922c07466f337a |
| hovercard-subject-tag | pull_request:270234271 |
| 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/12818/checks |
| twitter:image | https://avatars.githubusercontent.com/u/3972343?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3972343?s=400&v=4 |
| og:image:alt | This is an initial implementation with preliminary docs and tests to see if it's worthy enough of addition. Some notes : Currently, it doesn't support waiting for calls with keyword argume... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width