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

@ -1126,7 +1126,7 @@ object::
>>> mock.wait_until_called(timeout=1)
>>> thread.join()
.. method:: wait_until_any_call(*args, **kwargs)
.. method:: wait_until_any_call_with(*args, **kwargs)
Waits until the the mock is called with the specified arguments.
@ -1136,7 +1136,7 @@ object::
>>> mock = ThreadingMock()
>>> thread = threading.Thread(target=mock, args=("arg1", "arg2",), kwargs={"arg": "thing"})
>>> thread.start()
>>> mock.wait_until_any_call("arg1", "arg2", arg="thing")
>>> mock.wait_until_any_call_with("arg1", "arg2", arg="thing")
>>> thread.join()
.. attribute:: DEFAULT_TIMEOUT