gh-61215: Rename wait_until_any_call to wait_until_any_call_with (#106414)

mock: Rename `wait_until_any_call` to `wait_until_any_call_with`

Rename the method to be more explicit that it expects the args and
kwargs to wait for.
This commit is contained in:
Mario Corchero 2023-07-04 19:34:43 +02:00 • committed by GitHub
parent 8a4bba8b97
commit 2dfc7fae78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 28 deletions

View file

@ -3070,7 +3070,7 @@ class ThreadingMixin(Base):
f" timeout({timeout}).")
raise AssertionError(msg)
def wait_until_any_call(self, *args, **kwargs):
def wait_until_any_call_with(self, *args, **kwargs):
"""Wait until the mock object is called with given args.
Waits for the timeout in seconds provided in the constructor.